code: private static void postProcessMetadata(IntermediateParseResults intermediateResults) {
      intermediateResults
          .getEntityTypes()
          .forEach(
              entityType -> {
                setDefaultLabel(entityType);
  
                // in case no lookup attributes were defined:
                // try to set own id attribute and own label attribute as lookup attributes
                if (Iterables.size(entityType.getLookupAttributes()) == 0) {
                  setDefaultLookupAttributes(entityType, 0);
                }
              });
    }
docs: Post process metadata: - Select label attributes that are not defined in EMX - Select lookup
  attributes that are not defined in EMX
  
  @param intermediateResults intermediate parse results