code: public static Object newInstance(Class<?> entity) {
  		if (entity == null) {
  			return null;
  		}
  		try {
  			return entity.newInstance();
  		} catch (Exception e) {
  			throw new RuntimeException(e);
  		}
  	}
docs: <p>
  newInstance.
  </p>
  
  @param entity
  a {@link java.lang.Class} object.
  @return a {@link java.lang.Object} object.