private void serializeEPR ( EndpointReferenceType wsAddr , Node parent ) throws ServiceLocatorException { try { JAXBElement < EndpointReferenceType > ep = WSA_OBJECT_FACTORY . createEndpointReference ( wsAddr ) ; createMarshaller ( ) . marshal ( ep , parent ) ; } catch ( JAXBException e ) { if ( LOG . isLoggable ( Level . SEVERE ) ) { LOG . log ( Level . SEVERE , "Failed to serialize endpoint data" , e ) ; } throw new ServiceLocatorException ( "Failed to serialize endpoint data" , e ) ; } }
Inserts a marshalled endpoint reference to a given DOM tree rooted by parent .