@Override
public void onEvent(EventHeader header, Event event)
{
if (header.type == CommonEventConstants.AUTH_RESPONSE_EVENT_TYPE)
{
AuthResponseEvent res = (AuthResponseEvent) event;
server.token = res.token;
if (!StringHelper.isEmptyString(res.token))
{
logger.info("Auth token is " + res.token);
}