code: public static String getRemoteInterfaceName(String stubClassName) {
          if (stubClassName != null && stubClassName.endsWith("_Stub") &&
              !stubClassName.endsWith("._Stub")) // PM25511
          {
              StringBuilder nameBuilder = new StringBuilder(stubClassName);
              nameBuilder.setLength(nameBuilder.length() - 5);
  
              int packageOffset = nameBuilder.lastIndexOf(".") + 1;
              if (nameBuilder.charAt(packageOffset) == '_')
                  nameBuilder.deleteCharAt(packageOffset);
              else
                  return null;
  
              return nameBuilder.toString();
          }
  
          return null;
      }
docs: Utility method that returns the name of the remote interface
  corresponding to the specified Stub class name. <p>
  
  Null will be returned if the specified name is either null or
  not a valid Stub class name. <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 stubClassName the fully qualified class name of the
  Stub class.