if (loggregatorToken == null) {
CloudFoundryServerBehaviour behaviour = consoleDescriptor.getCloudServer().getBehaviour();
// This token represents the loggregator connection.
loggregatorToken = behaviour.addApplicationLogListener(consoleDescriptor.getCloudApplicationModule()
.getDeployedApplicationName(), new ApplicationLogConsoleListener());
}
}