AiravataClientException, AiravataSystemException, TException {
try {
Map<String, ApplicationDescription> applicationDescriptors = getRegistry().getApplicationDescriptors(applicationInterfaceId);
for (String hostId : applicationDescriptors.keySet()) {
if (applicationDescriptors.get(hostId).getType().getApplicationName().getStringValue().equals(applicationDeploymentId)){
ApplicationDeployment applicationDeployment = new ApplicationDeployment();
applicationDeployment.setDeploymentId(applicationDescriptors.get(hostId).getType().getApplicationName().getStringValue());
ApplicationDescriptor applicationDescriptor=new ApplicationDescriptor();
applicationDescriptor.setApplicationDescriptorId(applicationDescriptors.get(hostId).getType().getApplicationName().getStringValue());
applicationDescriptor.setApplicationDescriptorData(applicationDescriptors.get(hostId).toXML());
applicationDeployment.setApplicationDescriptor(applicationDescriptor);
applicationDeployment.setComputeResourceDescription(getComputeResourceDescription(hostId));
return applicationDeployment;
}
}
return null;
} catch (Exception e) {