try {
while (true) {
try {
AiravataRegistry registry = ((GFacConfiguration)context.getProperty(GFAC_CONFIGURATION)).getRegistry();
String localAddress = (String) this.context.getProperty(GFAC_URL);
registry.saveGFacDescriptor(localAddress);
log.info("Updated the GFac URL in to Repository");
Thread.sleep(GFAC_URL_UPDATE_INTERVAL);
} catch (RegistryException e) {
//in case of an registry exception best to retry sooner
log.error("Error saving GFac descriptor",e);