RepositoryInfo repositoryInfo;
try {
repositoryInfo = ServerUtil.getRepositoryInfo(getServer(), monitor);
OsgiClient client = Activator.getDefault().getOsgiClientFactory().createOsgiClient(repositoryInfo);
EmbeddedArtifactLocator artifactLocator = Activator.getDefault().getArtifactLocator();
Version remoteVersion = client.getBundleVersion(EmbeddedArtifactLocator.SUPPORT_BUNDLE_SYMBOLIC_NAME);
monitor.worked(1); // 4/5 done
final EmbeddedArtifact supportBundle = artifactLocator.loadToolingSupportBundle();
final Version embeddedVersion = new Version(supportBundle.getVersion());
ISlingLaunchpadServer launchpadServer = (ISlingLaunchpadServer) getServer().loadAdapter(SlingLaunchpadServer.class,
monitor);