public static void notAvailable(String jeeName, String taskName) {
        String message;
        int modSepIndex = jeeName.indexOf('#');
        if (modSepIndex == -1) {
            message = Tr.formatMessage(tc, "CWWKC1011.app.unavailable", taskName, jeeName);
        } else {
            String application = jeeName.substring(0, modSepIndex);
            int compSepIndex = jeeName.indexOf('#', modSepIndex + 1);
            if (compSepIndex == -1) {
                message = Tr.formatMessage(tc, "CWWKC1012.module.unavailable", taskName, jeeName.substring(modSepIndex + 1), application);
            } else {
                String module = jeeName.substring(modSepIndex + 1, compSepIndex);
                message = Tr.formatMessage(tc, "CWWKC1013.component.unavailable", taskName, jeeName.substring(compSepIndex + 1), module, application);
            }
        }
        throw new IllegalStateException(message);
    }
public static void notAvailable ( String jeeName , String taskName ) { String message ; int modSepIndex = jeeName . indexOf ( '#' ) ; if ( modSepIndex == - 1 ) { message = Tr . formatMessage ( tc , "CWWKC1011.app.unavailable" , taskName , jeeName ) ; } else { String application = jeeName . substring ( 0 , modSepIndex ) ; int compSepIndex = jeeName . indexOf ( '#' , modSepIndex + 1 ) ; if ( compSepIndex == - 1 ) { message = Tr . formatMessage ( tc , "CWWKC1012.module.unavailable" , taskName , jeeName . substring ( modSepIndex + 1 ) , application ) ; } else { String module = jeeName . substring ( modSepIndex + 1 , compSepIndex ) ; message = Tr . formatMessage ( tc , "CWWKC1013.component.unavailable" , taskName , jeeName . substring ( compSepIndex + 1 ) , module , application ) ; } } throw new IllegalStateException ( message ) ; }
Raises IllegalStateException because the application or application component is unavailable.

@param jeeName The metadata identifier, which is the JEE name (Application/Module/Component name with parts separated by hash signs).
For now, we'll parse the string and issue the appropriate message. This may not be appropriate in the future.
@param taskName identifier for the task or contextual operation that cannot be performed
@throws IllegalStateException indicating that the task cannot run because the application or application component is not available.