code: @Override
    public synchronized Repository<Entity> decorate(Repository<Entity> repository) {
      String entityTypeId = repository.getEntityType().getId();
  
      if (!entityTypeId.equals(DECORATOR_CONFIGURATION) && bootstrappingDone) {
        DecoratorConfiguration config =
            dataService
                .query(DECORATOR_CONFIGURATION, DecoratorConfiguration.class)
                .eq(ENTITY_TYPE_ID, entityTypeId)
                .findOne();
  
        if (config != null) {
          repository = decorateRepository(repository, config);
        }
      }
  
      return repository;
    }
docs: Decorates a {@link Repository} if there is a {@link DecoratorConfiguration} specified for this
  repository.