Map<Class, String> portComponentRefMap = new HashMap<Class, String>();
PortComponentRefType[] portComponentRefs = serviceRef.getPortComponentRefArray();
if (portComponentRefs != null) {
for (int j = 0; j < portComponentRefs.length; j++) {
PortComponentRefType portComponentRef = portComponentRefs[j];
String serviceEndpointInterfaceType = getStringValue(portComponentRef.getServiceEndpointInterface());
Class serviceEndpointClass = loadClass(serviceEndpointInterfaceType, cl, "service endpoint");
// TODO: check if it is annotated?
String portComponentLink = getStringValue(portComponentRef.getPortComponentLink());
portComponentRefMap.put(serviceEndpointClass, portComponentLink);
}
}