Observer

DBObject query = new BasicDBObject("username",username)
     .append("sessionId", sessionId);
     .append("expirationTime", clock.sessionExpirationTime(Calendar.getInstance()));