code: protected String[] resolveArgumentsFrom(Class type, String... args) {
  
      int index = indexOf(args, type.getName());
      int position = (index + 1);
  
      String[] arguments = StringUtils.EMPTY_STRING_ARRAY;
  
      if (index != -1 && position < args.length) {
        int length = (args.length - position);
        arguments = new String[length];
        System.arraycopy(args, position, arguments, 0, length);
      }
  
      return arguments;
    }
docs: Resolves the arguments to the Java program identified by the given {@link Class} type
  from the given array of {@link String arguments}.
  
  @param type Java {@link Class} containing the {@literal main} method of the Java program;
  must not be {@literal null}.
  @param args array of {@link String arguments} from which to extract the Java program arguments.
  @return the array of {@link String arguments} to be passed to the Java program.