This uses Jersey 1.15 to apply the @RolesAllowed security annotation - it's useful for securing rest services in JAVA. If you're interested in Jersey 2.x , look at TomRestTest