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();
    }
private String getFixedName ( Class < ? extends ComponentSystemEvent > cls ) { StringBuilder result = new StringBuilder ( ) ; String className ; className = cls . getSimpleName ( ) ; if ( className . toLowerCase ( ) . endsWith ( "event" ) ) { className = className . substring ( 0 , result . length ( ) - 5 ) ; } if ( cls . getPackage ( ) != null ) { result . append ( cls . getPackage ( ) . getName ( ) ) ; result . append ( '.' ) ; } result . append ( className ) ; return result . toString ( ) ; }
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.