code: public boolean containsDTOFor(JavaClass<?> entity, boolean root)
     {
        if (dtos.get(entity) == null)
        {
           return false;
        }
        return (root ? (dtos.get(entity).rootDTO != null) : (dtos.get(entity).nestedDTO != null));
     }
docs: Indicates whether a DTO is found in the underlying collection or not.
  
  @param entity The JPA entity for which DTOs may have been created
  @param root Toplevel/Root or nested DTO?
  @return <code>true</code> if a DTO at the desired level (root/nested) for the provided entity was found in the
  collection