code: List<EntityType> putEntitiesInDefaultPackage(
        IntermediateParseResults intermediateResults, String defaultPackageId) {
      Package p = getPackage(intermediateResults, defaultPackageId);
      if (p == null) {
        throw new UnknownPackageException(defaultPackageId);
      }
  
      List<EntityType> entities = newArrayList();
      for (EntityType entityType : intermediateResults.getEntityTypes()) {
        if (entityType.getPackage() == null) {
          entityType.setId(defaultPackageId + PACKAGE_SEPARATOR + entityType.getId());
          entityType.setPackage(p);
        }
        entities.add(entityType);
      }
      return entities;
    }
docs: Put the entities that are not in a package in the selected package