code: public static <T> T dtoFromClass(T entity, DTO dtoTemplate) throws HyalineException {
  		return dtoFromClass(entity, dtoTemplate, "Hyaline$Proxy$" + System.currentTimeMillis());
  	}
docs: It lets you create a new DTO starting from the annotation-based
  configuration of your entity. This means that any annotation-based
  configuration for JAXB, Jackson or whatever serialization framework you
  are using on your entity T will be kept. However, if you insert an
  annotation on a field that exists also in your class, this annotation
  will override the one in your class.
  
  
  @param <T>
  the generic type
  @param entity
  the entity you are going proxy.
  @param dtoTemplate
  the DTO template passed as an anonymous class.
  
  
  @return a proxy that extends the type of entity, holding the same
  instance variables values as entity and configured according to
  dtoTemplate
  
  @throws HyalineException
  if the dynamic type could be created.