@@ -0,0 +1,1176 @@
+package com.imcode.configuration;%0A%0Aimport com.imcode.services.GenericService;%0Aimport imcode.services.IvisServiceFactory;%0Aimport imcode.services.utils.IvisOAuth2Utils;%0Aimport org.springframework.core.MethodParameter;%0Aimport org.springframework.web.bind.support.WebArgumentResolver;%0Aimport org.springframework.web.context.request.NativeWebRequest;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0A%0A/**%0A * Created by ruslan on 06.12.16.%0A */%0Apublic class IvisServiceArgumentResolver implements WebArgumentResolver %7B%0A%0A    @Override%0A    public Object resolveArgument(MethodParameter methodParameter, NativeWebRequest webRequest) throws Exception %7B%0A        Class%3C?%3E type = methodParameter.getParameterType();%0A        Object nativeRequest = webRequest.getNativeRequest();%0A        if (!GenericService.class.isAssignableFrom(type) && !(nativeRequest instanceof HttpServletRequest)) %7B%0A            return UNRESOLVED;%0A        %7D%0A%0A        HttpServletRequest request = (HttpServletRequest) nativeRequest;%0A        IvisServiceFactory ivisServiceFactory = IvisOAuth2Utils.getServiceFactory(request);%0A%0A        return ivisServiceFactory.getService((Class%3C? extends GenericService%3E) type);%0A%0A    %7D%0A%0A%7D%0A

Add argument resolver.