public void downloadFile(String remoteFileName, String directory, GSSCredential credential, OutputStream out){
try {
GridFTPClient gridFTPClient = new GridFTPClient("", 9393);
gridFTPClient.authenticate(credential);
gridFTPClient.changeDir(directory);
DataSink sink = new DataSinkStream(out);
gridFTPClient.get(remoteFileName, sink , this);
} catch (ServerException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {