public GridFTPDataMovement getGridFTPDataMovementProtocol(
String gridFTPDataMovementResourceId)
throws InvalidRequestException, AiravataClientException,
AiravataSystemException, TException {
try {
GridFTPDataMovement gridFTPDataMovement = new GridFTPDataMovement();
gridFTPDataMovement.setDataMovementDataID(gridFTPDataMovementResourceId);
HostDescription hostDescriptor = getRegistry().getHostDescriptor(gridFTPDataMovementResourceId);
GlobusHostType s = (GlobusHostType)hostDescriptor.getType();
gridFTPDataMovement.setGridFTPEndPoint(Arrays.asList(s.getGridFTPEndPointArray()));
gridFTPDataMovement.setSecurityProtocol(SecurityProtocol.GSI);
return gridFTPDataMovement;
} catch (Exception e) {
e.printStackTrace();
throw new AiravataSystemException();
}