replace jersey with resteasy for dynamic injection