Source:
private java.util.Map < java.lang.String , java.lang.Object > nextArgs ( org.ovirt.engine.api.extensions.ExtMap context , boolean showHelp ) { java.util.Map < java.lang.String , java.lang.String > contextSubstitutions = new java.util.HashMap < > ( ) ; contextSubstitutions.put ( "@ENGINE_ETC@" , java.lang.System.getProperty ( "org.ovirt.engine.aaa.jdbc.engineEtc" ) ) ; contextSubstitutions.put ( "@PROGRAM_NAME@" , java.lang.System.getProperty ( "org.ovirt.engine.aaa.jdbc.programName" ) ) ; contextSubstitutions.put ( "@MODULE_LIST@" , ( ( org.apache.commons.lang.StringUtils.join ( this . getSubModules ( ) , "\n " ) ) + "\n help" ) ) ; java.util.Map < java.lang.String , java.lang.Object > parsed ; org.ovirt.engine.extension.aaa.jdbc.binding.cli.parser.ArgumentsParser argumentsParser = new org.ovirt.engine.extension.aaa.jdbc.binding.cli.parser.ArgumentsParser ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.class . getResourceAsStream ( "arguments.properties" ) , this . getName ( ) ) ; argumentsParser.getSubstitutions ( ) . putAll ( contextSubstitutions ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.List < java.lang.String > tail = context.get ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.TAIL , java.util.List.class ) ; argumentsParser.parse ( tail ) ; parsed = argumentsParser.getParsedArgs ( ) ; java.util.List < java.lang.Throwable > errors = argumentsParser.getErrors ( ) ; if ( ( errors.size ( ) ) > 0 ) { for ( java.lang.Throwable thr : errors ) { context.get ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.THROWABLES , java.util.List.class ) . add ( thr ) ; context.get ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.ERR_MESSAGES , java.util.List.class ) . add ( thr.getMessage ( ) ) ; } context.mput ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.EXIT_STATUS , org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ARGUMENT_PARSING_ERROR ) ; } if ( showHelp || ( ! ( context.containsKey ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.EXIT_STATUS ) ) ) ) { if ( ( showHelp || ( ( java.lang.Boolean ) ( parsed.get ( "help" ) ) ) ) || ( ( ( tail.size ( ) ) > 0 ) && ( tail.get ( 0 ) . equals ( "help" ) ) ) ) { org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.addContextMessage ( context , false , argumentsParser.getUsage ( ) ) ; context.putIfAbsent ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.EXIT_STATUS , org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.SUCCESS ) ; } } return parsed ; }

Target:
private java.util.Map < java.lang.String , java.lang.Object > nextArgs ( org.ovirt.engine.api.extensions.ExtMap context , boolean showHelp ) { java.util.Map < java.lang.String , java.lang.String > contextSubstitutions = new java.util.HashMap < > ( ) ; contextSubstitutions.put ( "@ENGINE_ETC@" , java.lang.System.getProperty ( "org.ovirt.engine.aaa.jdbc.engineEtc" ) ) ; contextSubstitutions.put ( "@PROGRAM_NAME@" , java.lang.System.getProperty ( "org.ovirt.engine.aaa.jdbc.programName" ) ) ; contextSubstitutions.put ( "@MODULE_LIST@" , ( ( org.apache.commons.lang.StringUtils.join ( this . getSubModules ( ) , "\n " ) ) + "\n help" ) ) ; java.util.Map < java.lang.String , java.lang.Object > parsed ; org.ovirt.engine.extension.aaa.jdbc.binding.cli.parser.ArgumentsParser argumentsParser = new org.ovirt.engine.extension.aaa.jdbc.binding.cli.parser.ArgumentsParser ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.class . getResourceAsStream ( "arguments.properties" ) , this . getName ( ) ) ; argumentsParser.getSubstitutions ( ) . putAll ( contextSubstitutions ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.List < java.lang.String > tail = context.get ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.TAIL , java.util.List.class ) ; argumentsParser.parse ( tail ) ; parsed = argumentsParser.getParsedArgs ( ) ; if ( showHelp || ( ! ( context.containsKey ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.EXIT_STATUS ) ) ) ) { if ( ( showHelp || ( ( java.lang.Boolean ) ( parsed.get ( "help" ) ) ) ) || ( ( ( tail.size ( ) ) > 0 ) && ( tail.get ( 0 ) . equals ( "help" ) ) ) ) { org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.addContextMessage ( context , false , argumentsParser.getUsage ( ) ) ; context.putIfAbsent ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.EXIT_STATUS , org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.SUCCESS ) ; } else { java.util.List < java.lang.Throwable > errors = argumentsParser.getErrors ( ) ; if ( ( errors.size ( ) ) > 0 ) { for ( java.lang.Throwable thr : errors ) { context.get ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.THROWABLES , java.util.List.class ) . add ( thr ) ; context.get ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.ERR_MESSAGES , java.util.List.class ) . add ( thr.getMessage ( ) ) ; } context.mput ( org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ContextKeys.EXIT_STATUS , org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli.ARGUMENT_PARSING_ERROR ) ; } } } return parsed ; }