Converted QR servlet into JAX-RS resource