code: private String getFixedName (Class<? extends ComponentSystemEvent> cls)
      {
          StringBuilder result = new StringBuilder();
          String className;
          
          // Get the unqualified class name.
          
          className = cls.getSimpleName();
          
          // Strip the trailing "event" off the class name if present.
          
          if (className.toLowerCase().endsWith ("event"))
          {
              className = className.substring (0, result.length() - 5);
          }
          
          // Prepend the package name.
          
          if (cls.getPackage() != null)
          {
              result.append (cls.getPackage().getName());
              result.append ('.');
          }
          
          result.append (className);
          
          return result.toString();
      }
docs: Retrieves the short name for an event class, according to spec rules.
  
  @param cls the class to find the short name for.
  @return a String containing the short name for the given class.