code: public JavaClassSource getDTOFor(JavaClass<?> entity, boolean root)
     {
        if (dtos.get(entity) == null)
        {
           return null;
        }
        return root ? (dtos.get(entity).rootDTO) : (dtos.get(entity).nestedDTO);
     }
docs: Retrieves the DTO created for the JPA entity, depending on whether a top level or nested DTO was requested as the
  return value.
  
  @param entity The JPA entity for which the DTOs may have been created
  @param root True, if the root/toplevel DTO should be returned. False if nested DTOs are to be returned.
  @return The root or nested DTO created for the JPA entity. <code>null</code> if no DTO was found.