code: public static String getEngineUrl(String serverSpec) throws NamingException {
          String url;
          int at = serverSpec.indexOf('@');
          if (at>0) {
              url = serverSpec.substring(at+1);
          } else {
              int colonDashDash = serverSpec.indexOf("://");
              if (colonDashDash>0) {
                  url = serverSpec;
              } else {
                  url = PropertyManager.getProperty(PropertyNames.MDW_REMOTE_SERVER + "." + serverSpec);
                  if (url==null) throw new NamingException("Cannot find engine URL for " + serverSpec);
              }
          }
          return url;
      }
docs: Returns engine URL for another server, using server specification as input.
  
  Server specification can be one of the following forms
  a) URL of the form t3://host:port, iiop://host:port, rmi://host:port, http://host:port/context_and_path
  b) a logical server name, in which case the URL is obtained from property mdw.remote.server.<server-name>
  c) server_name@URL
  
  @param serverSpec
  @return URL for the engine
  @throws NamingException