* @param applicationObject : Object of Application bean
* @return Application Name
* @throws GfacException
*/
public String updateObject(RegistryService regService, BeanObject applicationObject) throws GfacException {
ApplicationBean appDesc = (ApplicationBean) applicationObject;
ApplicationDescriptionDocument oldAppDesc = RegistryUtil.getAppDesc(regService, new QName(appDesc.getObjectNamespace(), appDesc.getApplicationName()), appDesc.getHostName());
String appDescStr = applicationXMLRequest(regService, appDesc, null);
if (oldAppDesc != null) {
regService.removeAppDesc(new QName(appDesc.getObjectNamespace(),appDesc.getApplicationName()).toString(), appDesc.getHostName());
}
regService.registerAppDesc(appDescStr);
return appDescStr;
}