docs: @POST
      @Consumes(MediaType.APPLICATION_JSON)
      public Response register(@Context Session session,EncryptedEntity.Reader entity){
          try{
              Credentials credentials = session.getUser();
              entity.setKey(keyManager.getPrivateKey());
  
              credentials.setPushMessagingKey(entity.get("token"));
              dao.save(credentials);
          } catch (DAOException e) {
              logger.severe(ExceptionUtils.getStackTrace(e));
              return fromDAOExpection(e);
          } catch (Exception e) {
              logger.severe(ExceptionUtils.getStackTrace(e));
              return Response.serverError().entity("Shit").build();
          }
  
          return Response.ok().build();
      }