public void processMessage(final WebSocketMessage webSocketData) {
final String sessionId = webSocketData.getSessionId();
logger.log(Level.FINE, "PING received from session {0}", sessionId);
final Principal currentUser = AuthHelper.getPrincipalForSessionId(sessionId);
if (currentUser != null) {
getWebSocket().send(MessageBuilder.status()
.data("username", currentUser.getProperty(AbstractNode.name))
.data("isAdmin", currentUser.getProperty(Principal.isAdmin))
.code(100).build(), true);
} else {
logger.log(Level.FINE, "Invalid session id");