https://github.com/ggeorgovassilis/spring-rest-invoker
would be a useful resource, to fix this problem.