EndpointReferenceUtil.transform(MemberSubmissionEndpointReference.class, endpointReference);
WSService service = new WSServiceDelegate(msepr.toWSDLSource(), msepr.serviceName.name, Service.class);
*/
if(endpointReference == null)
throw new WebServiceException(ProviderApiMessages.NULL_EPR());
WSEndpointReference wsepr = new WSEndpointReference(endpointReference);
WSEndpointReference.Metadata metadata = wsepr.getMetaData();
WSService service;
if(metadata.getWsdlSource() != null)
service = new WSServiceDelegate(metadata.getWsdlSource(), metadata.getServiceName(), Service.class);
else
throw new WebServiceException("WSDL metadata is missing in EPR");