code: public static <T> T newInstance(Class<T> clazz) {
  		try {
  			return clazz.newInstance();
  		}
  		catch (InstantiationException | IllegalAccessException e) {
  			throw new ResourceException(String.format("couldn't create a new instance of %s", clazz));
  		}
  	}
docs: Create a new instance of a resource using a default constructor
  
  @param clazz new instance class
  @param <T>   new instance class
  @return new instance