static String encodeStub(RMIServer rmiServer,Map<String,?> env) throws IOException {
  if (IIOPHelper.isStub(rmiServer))   return "/ior/" + encodeIIOPStub(rmiServer,env);
 else   return "/stub/" + encodeJRMPStub(rmiServer,env);
}

static String encodeStub ( RMIServer rmiServer , Map < String , ? > env ) throws IOException { if ( IIOPHelper . isStub ( rmiServer ) ) return "/ior/" + encodeIIOPStub ( rmiServer , env ) ; else return "/stub/" + encodeJRMPStub ( rmiServer , env ) ; }
returns the ior of the given rmiserver .
