code: @SuppressWarnings("unchecked")
    private Repository<Entity> decorateRepository(
        Repository<Entity> repository, DecoratorConfiguration configuration) {
      Map<String, Map<String, Object>> parameterMap = getParameterMap(configuration);
      List<DecoratorParameters> decoratorParameters =
          configuration.getDecoratorParameters().collect(toList());
      for (DecoratorParameters decoratorParam : decoratorParameters) {
        DynamicRepositoryDecoratorFactory factory =
            factories.get(decoratorParam.getDecorator().getId());
        if (factory != null) {
          repository =
              factory.createDecoratedRepository(repository, parameterMap.get(factory.getId()));
        }
      }
      return repository;
    }
docs: Decorates a {@link Repository} with one or more {@link DynamicDecorator}s., based on the {@link
  DecoratorConfiguration} entity.