code: public static <T> T newObject(Class<T> clazz) {
          return getFactory(clazz).newObject(clazz);
      }
docs: Creates a new instance of an object of this domain.
  
  @param <T> Class of domain object.
  @param clazz Class of object to create.
  @return The new domain object instance.