class SimpleTokenManager implements TokenManager {

    @Override
    public String getTokenString(ContainerRequestContext requestContext) {
        javax.ws.rs.core.Cookie cookie = requestContext.getCookies().get(TOKEN_NAME);

        if (cookie == null) {
            LOG.debug("Mobi web token cookie not found.");
            return null;
        } else {
            return cookie.getValue();
        }
    }

}