private static EndpointReferenceType createEPR ( Server server , String address , SLProperties props ) { EndpointReferenceType sourceEPR = server . getEndpoint ( ) . getEndpointInfo ( ) . getTarget ( ) ; EndpointReferenceType targetEPR = WSAEndpointReferenceUtils . duplicate ( sourceEPR ) ; WSAEndpointReferenceUtils . setAddress ( targetEPR , address ) ; if ( props != null ) { addProperties ( targetEPR , props ) ; } return targetEPR ; }
Creates an endpoint reference by duplicating the endpoint reference of a given server .