p.getRace().add(sevenValDKRef_hcs);
}
}
} catch (Exception e){e.printStackTrace();}
if (pc.getDateOfBirth() !=null) {
DOBHashingChoice dobhc = new DOBHashingChoice();
DateStatic ds = new DateStatic();
GregorianCalendar c = new GregorianCalendar();
c.setTime(pc.getDateOfBirth());
try {
XMLGregorianCalendar gc = DatatypeFactory.newInstance().newXMLGregorianCalendar(c);
gc.setTimezone(DatatypeConstants.FIELD_UNDEFINED);
gc.setTime(DatatypeConstants.FIELD_UNDEFINED, DatatypeConstants.FIELD_UNDEFINED, DatatypeConstants.FIELD_UNDEFINED);
ds.setValue(gc);
} catch (DatatypeConfigurationException e) {e.printStackTrace();}
dobhc.setUnhashed(ds);
p.setDateOfBirth(dobhc);
}
Marshaller marshaller = jc.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
//NamespacePrefixMapper namespacePrefixMapper = new NamespacePrefixMapper();