SocialClientContext.setHost(System.getProperty("social.server.host", "127.0.0.1"));
SocialClientContext.setPort(Integer.getInteger("social.server.port", 8080));
SocialClientContext.setPortalContainerName("portal");
SocialClientContext.setRestContextName("rest");
setRestVersion();
ClientServiceFactory clientServiceFactory = ClientServiceFactoryHelper.getClientServiceFactory();
versionService = clientServiceFactory.createVersionService();
String[] supportedVersions = versionService.getSupported();
for (String supportedVersion : supportedVersions) {
if (supportedVersion.equals(SocialClientContext.getRestVersion())) {
canRun = true;
break;
}
}
identityService = clientServiceFactory.createIdentityService();
activityService = clientServiceFactory.createActivityService();
afterSetup();
}