*/
public EndpointReferenceType getEprForResource( ResourceKey key,
String serviceUrl )
{
EndpointReferenceDocument eprDoc = EndpointReferenceDocument.Factory.newInstance( );
EndpointReferenceType epr = eprDoc.addNewEndpointReference( );
AttributedURI address = epr.addNewAddress( );
address.setStringValue( serviceUrl + "/" +SERVICE_NAME );
ReferencePropertiesType refProps = epr.addNewReferenceProperties( );
XmlObject xmlObject = XmlBeanUtils.addChildElement( refProps,
key.getName( ) );
XmlBeanUtils.setValue( xmlObject,
key.getValue( ).toString( ) );