public URL createServerURL(URL server,String path) throws MalformedURLException {
  return new URL(server.getProtocol(),server.getHost(),server.getPort(),localServerDeploymentPath + "/" + path);
}

public URL createServerURL ( URL server , String path ) throws MalformedURLException { return new URL ( server . getProtocol ( ) , server . getHost ( ) , server . getPort ( ) , localServerDeploymentPath + "/" + path ) ; }
creates a new url by adding the provided path to the end of the provided server ' s url . this assumes that the provided server url does not include the deployment path of openam since it can be assumed to be the same as this server ' s deployment path . e . g . given the server url " https : / / remote . example . com : 8080 " and the path " gethttpsession ? op = create " , if this openam server is deployed to " / openam " then the resulting url will be https : / / remote . example . com : 8080 / openam / gethttpsession ? op = create
