public boolean execute(InvocationContext context) throws GfacException {
/*
* Load host and app description from registry
*/
RegistryService registryService = context.getExecutionContext().getRegistryService();
String serviceMapStr = registryService.getServiceMap(context.getServiceName());
System.out.println(serviceMapStr);
if (serviceMapStr != null) {
try {
ServiceMapType serviceMap = ServiceMapDocument.Factory.parse(serviceMapStr).getServiceMap();
QName appName = GfacUtils.findApplcationName(serviceMap);
// host name
String hostName = findHostFromServiceMap(registryService, appName);
// app
String appDesc = registryService.getAppDesc(appName.toString(), hostName);
ApplicationDescriptionType appDescType = ApplicationDescriptionDocument.Factory.parse(appDesc).getApplicationDescription();
// host desc
String hostDesc = registryService.getHostDesc(hostName);
HostDescriptionType hostDescType = HostDescriptionDocument.Factory.parse(hostDesc).getHostDescription();
// application deployment
DeploymentDescriptionType deploymentDesc = appDescType.getDeploymentDescription();
String tmpDir = deploymentDesc.getTmpDir();