if ( args.length > 0 && args[0].toLowerCase().trim().equals(GENERATE_SWITCH)) {
if ( args.length > 1 && args[1].toLowerCase().trim().equals(GENERATE_SWITCH)) {
    public static void main(String[] args) {        // Initialize the TokenManager class        /*           This class is used for general access to the Luna HSM and is not           part of the normal JCE/JCA.  This class is required to access the           HSM as it contains the methods for logging in and out of the HSM           and slot/token management.           See the Luna developers reference guide for information on           alternatives to using the LunaTokenManager class.        */        if ( args.length > 0 && args[0].toLowerCase().trim().equals(GENERATE_SWITCH)) {            if ( args.length < 6 )                System.err.println(args[0] + " " + args[1] + " <key entry name> <key size>");            else                generate(args[2], args[3], args[4], Integer.parseInt(args[5].trim()));        } else if ( args.length > 0 && args[0].toLowerCase().trim().equals(DELETE_SWITCH)) {            if ( args.length < 5 )                System.err.println(args[0] + " " + args[1] + " <key entry name>");            else                delete(args[2], args[3], args[4]);        } else            System.err.println("Use \"" + args[0]+" "+GENERATE_SWITCH+"\" or \"" +                               args[0]+" "+DELETE_SWITCH+"\".");     }