// separate (occurrence) elements
Element element = pde.getElement();
if (element != null) {
Object elementValue = element.getElementValue();
if (elementValue instanceof JAXBElement) {
JAXBElement jaxb = (JAXBElement) elementValue;
Object value = jaxb.getValue();
if (representAsOccurrence(value, jaxb.getDeclaredType())) {
if (log.isDebugEnabled()) {
log.debug("Build OccurrentArray");
}
OccurrenceArray occurrenceArray = new OccurrenceArray(value);
JAXBElement newJAXBElement =
new JAXBElement(jaxb.getName(),
jaxb.getDeclaredType(),
occurrenceArray);
element = new Element(newJAXBElement, jaxb.getName());
pde = new PDElement(pde.getParam(), element, null);
}