code: public static void main(String[] args)
      {
          Class<?> exampleClass = args.length > 0 ? EXAMPLES.get(args[0]) : null;
          if (exampleClass == null)
          {
              System.err.println("First argument must be the name of an example, i.e. one of "
                                 + Arrays.toString(EXAMPLES.keySet().toArray()));
              System.exit(1);
          }
  
          // All args except the first one should be passed to the example application.
          String[] appArgs = new String[args.length - 1];
          System.arraycopy(args, 1, appArgs, 0, appArgs.length);
  
          // Invoke the main method for the selected example application.
          Method main = ReflectionUtils.findKnownMethod(exampleClass, "main", String[].class);
          ReflectionUtils.invokeUnchecked(main, exampleClass, new Object[]{appArgs});
      }
docs: Launch the specified example application from the command-line.
  @param args First item is the name of the example to run.  Any subsequent arguments are passed
  on to the specific example.