public void transferEndpoints(Port port) { if (port != null) { String endpoint = WsdlUtils.getSoapEndpoint(port); if (endpoint != null) { StringList list = new StringList(getEndpoints()); // expand properties.. for (int c = 0; c < list.size(); c++) list.set(c, PropertyExpander.expandProperties(this, list.get(c))); if (!list.contains(endpoint)) { if (UISupport.confirm( "Update existing requests with new endpoint\n[" + endpoint + "]", "Update Definition")) { for (int c = 0; c < getOperationCount(); c++) { Operation operation = getOperationAt(c); for (int ix = 0; ix < operation.getRequestCount(); ix++) { operation.getRequestAt(ix).setEndpoint(endpoint); } } } addEndpoint(endpoint); } } } }