code: public Object createNewInstance(Class type, Object arg)
      {
          if (type != null)
              return createNewInstance(new Class[]{type}, new Object[]{arg});
          else
              return createNewInstance((Class[]) null, (Object[]) null);
      }
docs: factory method for creating new instances
  the Class to be instantiated is defined by getClassToServe().
  @return Object the created instance