String sshJobSubmissionProtocolResourceId)
throws InvalidRequestException, AiravataClientException,
AiravataSystemException, TException {
try {
HostDescription hostDescriptor = getRegistry().getHostDescriptor(sshJobSubmissionProtocolResourceId);
SSHJobSubmission d = new SSHJobSubmission();
d.setJobSubmissionDataID(sshJobSubmissionProtocolResourceId);
if (hostDescriptor.getType() instanceof SSHHostType){
d.setSshPort(22);
} else {
throw new Exception("Saved job protocol is not SSH");
}
return d;
} catch (Exception e) {