try {
String uniqueName = domain + "-" + subDomain + "-"
+ UUID.randomUUID() + ".xml";
FileUtils.writeStringToFile(new File(
CloudControllerConstants.SERVICES_DIR + uniqueName),
newServiceCtxt.toXml());
} catch (IOException e) {
String msg = "Failed while persisting the service configuration - domain : "
+ domain
+ ", sub domain : "
+ subDomain