public static void register(String location, String userName, String password, boolean selfSigned,
IProgressMonitor monitor) throws CoreException {
SubMonitor progress = SubMonitor.convert(monitor);
progress.beginTask("Connecting", IProgressMonitor.UNKNOWN); //$NON-NLS-1$
try {
CloudFoundryOperations client = createClient(location, userName, password, selfSigned);
client.register(userName, password);
}
catch (RestClientException e) {
throw CloudErrorUtil.toCoreException(e);
}
catch (RuntimeException e) {