There should be a possibility to specify code, which JAXB would call after an
object was unmarshalled (after all fields were set, so that method could use
them). It is not possible to achieve this using the ctor.
This functionality could be made available either by a new annotation
(@XmlPostConstruct or something).
Please see this resource for a possible workaround: