@Override public JAXBElement<?> createNotifyMessageNotSupportedFault( NotifyMessageNotSupportedFaultType fault) throws WSNotificationException { return WSNotificationJAXBContext.wsnbFactory.createNotifyMessageNotSupportedFault((com.ebmwebsourcing.wsstar.jaxb.notification.base.NotifyMessageNotSupportedFaultType) ((AbstractSchemaElementImpl<?>)fault).getModel()); }
@Override public final Document writeNotifyMessageNotSupportedFaultTypeAsDOM( NotifyMessageNotSupportedFaultType value) throws WsnbException { Document result = null; if (value instanceof NotifyMessageNotSupportedFaultTypeImpl){ try { Marshaller marshaller = this.wsnbJaxbContext.createWSNotificationMarshaller(); result = WsstarCommonUtils.getNamespaceDocumentBuilder().newDocument(); // TODO : Check if it is a Thread safe method final JAXBElement<com.ebmwebsourcing.wsstar.jaxb.notification.base.NotifyMessageNotSupportedFaultType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createNotifyMessageNotSupportedFault( NotifyMessageNotSupportedFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }