PreferenceConstants.AUTO_CONNECT);
if (!autoConnect)
return;
StatisticManager statisticManager = sarosContext
.getComponent(StatisticManager.class);
ErrorLogManager errorLogManager = sarosContext
.getComponent(ErrorLogManager.class);
// we need at least a user name, but also the agreement to the
// statistic and error log submission
boolean hasUserName = this.sarosContext.getComponent(
PreferenceUtils.class).hasUserName();
boolean hasAgreement = statisticManager.hasStatisticAgreement()
&& errorLogManager.hasErrorLogAgreement();
if (hasUserName && hasAgreement) {
asyncConnect();
}