code: private void removeMappedByAttributes(Map<String, EntityType> resolvedEntityTypes) {
      resolvedEntityTypes
          .values()
          .stream()
          .flatMap(EntityType::getMappedByAttributes)
          .filter(attribute -> resolvedEntityTypes.containsKey(attribute.getEntity().getId()))
          .forEach(attribute -> dataService.delete(ATTRIBUTE_META_DATA, attribute));
    }
docs: Removes the mappedBy attributes of each OneToMany pair in the supplied map of EntityTypes