@@ -0,0 +1,2143 @@
+package pl.openrest.filters.webmvc;%0A%0Aimport lombok.NonNull;%0A%0Aimport org.springframework.core.MethodParameter;%0Aimport org.springframework.data.rest.core.mapping.ResourceMetadata;%0Aimport org.springframework.data.rest.webmvc.config.ResourceMetadataHandlerMethodArgumentResolver;%0Aimport org.springframework.web.bind.support.WebDataBinderFactory;%0Aimport org.springframework.web.context.request.NativeWebRequest;%0Aimport org.springframework.web.method.support.HandlerMethodArgumentResolver;%0Aimport org.springframework.web.method.support.ModelAndViewContainer;%0A%0Aimport pl.openrest.filters.domain.registry.FilterableEntityInformation;%0Aimport pl.openrest.filters.domain.registry.FilterableEntityRegistry;%0A%0Apublic class FilterableEntityInformationMethodArgumentResolver implements HandlerMethodArgumentResolver %7B%0A%0A    private final ResourceMetadataHandlerMethodArgumentResolver resourceMetadataResolver;%0A    private final FilterableEntityRegistry filterableEntityRegistry;%0A%0A    public FilterableEntityInformationMethodArgumentResolver(%0A            @NonNull ResourceMetadataHandlerMethodArgumentResolver resourceMetadataResolver,%0A            @NonNull FilterableEntityRegistry filterableEntityRegistry) %7B%0A        this.resourceMetadataResolver = resourceMetadataResolver;%0A        this.filterableEntityRegistry = filterableEntityRegistry;%0A    %7D%0A%0A    @Override%0A    public FilterableEntityInformation resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest,%0A            WebDataBinderFactory binderFactory) throws Exception %7B%0A        ResourceMetadata metadata = resourceMetadataResolver.resolveArgument(parameter, mavContainer, webRequest, binderFactory);%0A        FilterableEntityInformation entityInfo = filterableEntityRegistry.get(metadata.getDomainType());%0A        if (entityInfo == null)%0A            throw new IllegalArgumentException(%22Could not resolve FilterableEntityInformation%22);%0A        return entityInfo;%0A    %7D%0A%0A    @Override%0A    public boolean supportsParameter(MethodParameter parameter) %7B%0A        return FilterableEntityInformation.class.isAssignableFrom(parameter.getParameterType());%0A    %7D%0A%0A%7D%0A

Add FilterableEntityInformationMethodArgumentResolver