private void editSelectedDeployment() {
String hostName = tblModelHosts.getValueAt(tblHosts.getSelectedRow(),0).toString();
HostDeploymentDialog hostDeploymentDialog = new HostDeploymentDialog(getRegistry(),false,getDeployments().get(hostName).getApplicationDescription(),hostName,Arrays.asList(getDeployments().keySet().toArray(new String[]{})));
try {
HostDeployment deployDesc = hostDeploymentDialog.execute();
if (deployDesc!=null){
getDeployments().put(deployDesc.getHostDescription().getType().getHostName(), deployDesc);
updateDeploymentTable();
}
} catch (AiravataAPIInvocationException e1) {
setError(e1.getLocalizedMessage());
e1.printStackTrace();