}
public static ServerDescriptor getServerDescriptor(CloudFoundryServer server, String serverName) {
ServerDescriptor descriptor = new ServerDescriptor("space server"); //$NON-NLS-1$
// Loads the CF Server Runtime Adapter
CloudFoundryServerRuntime cfServerRuntime = server.getRuntime();
if (cfServerRuntime != null) {
IRuntime runtime = cfServerRuntime.getRuntime();
descriptor.setRuntimeTypeId(runtime.getRuntimeType().getId()); // eg. "org.cloudfoundry.appcloudserver.runtime.10"
descriptor.setRuntimeName(runtime.getName()); // eg. "Cloud Foundry (Runtime) v1.0"
}
IServer iServer = server.getServer();
if (iServer != null) {