org.apache.log4j.PropertyConfigurator.configure("log4j.properties");
PropertyConfigurator.configure("log4j.properties");
    public static void main(String[] args) {        try {            org.apache.log4j.PropertyConfigurator.configure("log4j.properties");            BatchMakeP12 makep12 = new BatchMakeP12();            // Create subdirectory 'p12' if it does not exist            File dir = new File("./p12");            dir.mkdir();            makep12.setMainStoreDir("./p12");            if ( (args.length > 0) && args[0].equals("-?") ) {                System.out.println("Usage: batch [username]");                System.out.println("Without arguments generates all users with status NEW or FAILED.");                System.exit(0);            }            if (args.length > 0) {               cat.info("Generating Token.");               makep12.createUser(args[0]);            } else {               // Make P12 for all NEW users in local DB               makep12.createAllNew();               // Make P12 for all FAILED users in local DB                makep12.createAllFailed();            }        } catch( Exception e ) {            e.printStackTrace();        }    } // main