TService service = services[i];
TPort[] ports = service.getPortArray();
for (int j = 0; j < ports.length; j++) {
TPort port = ports[j];
if (port.getName().trim().equals(portComponentName)) {
XmlCursor portCursor = port.newCursor();
try {
if (portCursor.toChild(ADDRESS_QNAME)) {
if (servletLocation == null) {
String original = portCursor.getAttributeText(LOCATION_QNAME);
URI originalURI = new URI(original);