Options opts = null;
try {
opts = getOptions(schemaCompiler);
// keep parseArguments happy, supply dummy required command-line opts
opts.addGrammar(new InputSource("null"));
opts.parseArguments(args.toArray(new String[]{}));
} catch (BadCommandLineException e) {
String msg = "XJC reported 'BadCommandLineException' for -xjc argument:" + xjcArgs;
LOG.log(Level.FINE, msg, e);
if (opts != null) {
String pluginUsage = getPluginUsageString(opts);