SessionTokenService service = null;
Map<String, Object> resp = new HashMap<String, Object>();
try {
service = applicationContext.getManagedBean(SessionTokenService.class);
} catch (NoSuchManagedBeanExcpetion e) {
throw new SherpaRuntimeException(e);
}
resp.put("userid", userid);
resp.put("token", token);
resp.put("status", service.isActive(userid, token));