if (processJaxb.getExtensionElements() != null) {
for (Object extensionElement : processJaxb.getExtensionElements().getAny()) {
if (extensionElement instanceof JAXBElement && (((JAXBElement<?>) extensionElement).getValue() instanceof TVersion) ) {
JAXBElement<?> jaxbElement = (JAXBElement<?>) extensionElement;
TVersion versionJaxb = (TVersion) ((JAXBElement<?>) jaxbElement).getValue();
return versionJaxb;
}
}
}
// if user has not defined a process version create empty version
return new TVersion();
}