IProgressMonitor monitor) throws CoreException {
String subdomain = getStringValue(application, SUB_DOMAIN_PROP);
String domain = getStringValue(application, DOMAIN_PROP);
if (domain != null || subdomain != null) {
CloudApplicationURL cloudURL = new CloudApplicationURL(subdomain, domain);
try {
cloudURL = ApplicationUrlLookupService.update(cloudServer, monitor).validateCloudApplicationUrl(
cloudURL);
}
catch (CoreException e) {
// Log this as at this stage, but don't let it prevent
// further
// parsing
CloudFoundryPlugin.logError(e);
}
List<String> urls = Arrays.asList(cloudURL.getUrl());
workingCopy.setUris(urls);
}
}