/** * A way to create a {@link com.ebmwebsourcing.wsstar.jaxb.addressing.MetadatType} * "Jaxb model type" object from a {@link MetadatType} "api type" one * * @param apiTypeObj */ public static com.ebmwebsourcing.wsstar.jaxb.addressing.MetadataType toJaxbModel(MetadataType apiTypeObj) { com.ebmwebsourcing.wsstar.jaxb.addressing.MetadataType jaxbTypeObj = null; if (apiTypeObj instanceof MetadataTypeImpl) { jaxbTypeObj = ((MetadataTypeImpl)apiTypeObj).getJaxbTypeObj(); } else { jaxbTypeObj = WsaJAXBContext.WSA_FACTORY.createMetadataType(); List<Element> metadataObjs = apiTypeObj.getAny(); if (metadataObjs != null) { jaxbTypeObj.getAny().addAll(metadataObjs); } } return jaxbTypeObj; }