code: public static String getStubClassName(String remoteInterfaceName) {
          StringBuilder stubBuilder = new StringBuilder(remoteInterfaceName);
          int packageOffset = Math.max(remoteInterfaceName.lastIndexOf('.') + 1,
                                       remoteInterfaceName.lastIndexOf('$') + 1);
          stubBuilder.insert(packageOffset, '_');
          stubBuilder.append("_Stub");
  
          return stubBuilder.toString();
      }
docs: Utility method that returns the name of the Stub class that needs to
  be generated for the specified remote interface class. Intended for
  use by JITDeploy only (should not be called directly). <p>
  
  Basically, the name of the Stub class for any remote interface is
  the name of the remote interface class, with an '_' prepended,
  and '_Stub' appended. <p>
  
  This method properly modifies the class name with or without
  a package qualification. <p>
  
  @param remoteInterfaceName the fully qualified class name of the
  remote interface.