code: public static String getClassName(String resourceName)
      {
          String className = resourceName.replace(File.separatorChar, '.');
          if (className.length() > 7)
          {
              className = className.substring(0, className.length() - 6);
          }
          return className;
      }
docs: Returns the fully qualified class name represented by the given resource.
  
  @param  resourceName the file name of the resource to convert to a class
  name; may not be <code>null</code>
  @return the fully qualified class name represented by the given resource