@POST @RolesAllowed({Role.TEACHER}) @Path("/spell") @Produces(MediaType.TEXT_PLAIN) public Integer insertGame(SpellGameTO spellGameTO, @HeaderParam("login") String login) { SpellGame spellGame = TOsGameManager.covertSpellGameTO(spellGameTO); Integer id = gameManager.insertGame(spellGame, login); return id; }