code: public DTOCollection from(Project project, JavaClass<?> entity, String dtoPackage)
     {
        DTOCollection dtoCollection = new DTOCollection();
        if (entity == null)
        {
           throw new IllegalArgumentException("The argument entity was null.");
        }
        generatedDTOGraphForEntity(project, entity, dtoPackage, true, false, dtoCollection);
        return dtoCollection;
     }
docs: Creates a collection of DTOs for the provided JPA entity, and any JPA entities referenced in the JPA entity.
  
  @param entity The JPA entity for which DTOs are to be generated
  @param dtoPackage The Java package in which the DTOs are to be created
  @return The {@link DTOCollection} containing the DTOs created for the JPA entity.