Though I can see that 'private UriInfo uriInfo' needs to be removed since it is not being called.