convert from a javax.xml.ws.endpointreference to a an instance of endpointreference . concode_field_sep OMFactory omFactory concode_field_sep void addInterface concode_elem_sep void addService concode_elem_sep javax.xml.ws.EndpointReference convertFromSource concode_elem_sep javax.xml.ws.EndpointReference convertFromAxis2 concode_elem_sep String getAddressingNamespace concode_elem_sep EndpointReference createAxis2EndpointReference concode_elem_sep EndpointReference createAxis2EndpointReference concode_elem_sep void addMetadata concode_elem_sep void addLocation concode_elem_sep void addReferenceParameters concode_elem_sep void addExtensibleElements concode_elem_sep void addExtensibleAttributes
String function ( EndpointReference arg0 , javax . xml . ws . EndpointReference arg1 ) { ByteArrayOutputStream loc0 = new ByteArrayOutputStream ( ) ; arg1 . writeTo ( new StreamResult ( loc0 ) ) ; ByteArrayInputStream loc1 = new ByteArrayInputStream ( loc0 . toByteArray ( ) ) ; OMElement loc2 = ( OMElement ) XMLUtils . toOM ( loc1 ) ; return EndpointReferenceHelper . fromOM ( arg0 , loc2 ) ; }