Fix bug in JAX-RS Spring integration