List arguments = Arrays.asList(args); args = (String[]) arguments.subList(1, arguments.size()).toArray(new String[0]);  LOG.config("Testing which mapper to use: "+mapperName);  if ( ARG_WEBMAPPER.equals(mapperName) ) ServletMapper.main(args); else CliMapper.main(args);
if ( ARG_WEBMAPPER.equals(args[0]) ) ServletMapper.main( MapperUtil.shift(args) ); else CliMapper.main( ARG_CLIMAPPER.equals(args[0]) ? MapperUtil.shift(args) : args );
    public static void main(String[] args)     {        String mapperName = args[0] ;                List arguments = Arrays.asList(args);        args = (String[]) arguments.subList(1, arguments.size()).toArray(new String[0]);             LOG.config("Testing which mapper to use: "+mapperName);                if ( ARG_WEBMAPPER.equals(mapperName) )            ServletMapper.main(args);        else             CliMapper.main(args); // is also default     }