code: public String[] build() {
  
          synchronized (lock) {
              final String[] toReturn = new String[arguments.size()];
              return arguments.toArray(toReturn);
          }
      }
docs: <p>Retrieves all arguments as a string array, usable by a method accepting a String[] for argument.
  This would be true of {@code public static void main(String[] args)}, as well as the entry points
  for both the XJC and the Schemagen tools.</p>
  
  @return an array holding all arguments in this ArgumentBuilder.