code: public void validate(EntityType entityType) {
      validateEntityId(entityType);
      validateEntityLabel(entityType);
      validatePackage(entityType);
      validateExtends(entityType);
      validateOwnAttributes(entityType);
  
      Map<String, Attribute> ownAllAttrMap =
          stream(entityType.getOwnAllAttributes())
              .collect(toLinkedMap(Attribute::getIdentifier, Function.identity()));
  
      validateOwnIdAttribute(entityType, ownAllAttrMap);
      validateOwnLabelAttribute(entityType, ownAllAttrMap);
      validateOwnLookupAttributes(entityType, ownAllAttrMap);
      validateLabelAttribute(entityType);
      validateBackend(entityType);
    }
docs: Validates entity meta data
  
  @param entityType entity meta data
  @throws MolgenisValidationException if entity meta data is not valid