fixed bug with autowiring beans in jersey resource