refactor hateoas interceptor to use find util