// Session is open
session = main.sessionManager.renewSession(session);
user = main.dataConnector.getUser(session.login);
if (user != null) {
long timeMillis = System.currentTimeMillis();
Message message = main.dataConnector.addMessage(user.id, timeMillis, text);
responseHeaders(ResponseFormat.JSON, 200);
sendJson(message);
return;
}