client.setLocalActive();
//client.setPassiveMode(true);
client.setType(GridFTPSession.TYPE_IMAGE);
log.debug("Creating GridFTP Output Stream to: " + host + ":" + port + getName().getPath());
GSSCredential proxy = (GSSCredential) this.fileSystem.getAttribute(GridFtpFileSystem.CREDENTIAL);
return new GridFTPOutputStream(proxy, host, port, getName().getPath(), append);
/*
// using inner class approach (as commented out below) caused probs.
OutputStreamDataSource source = new OutputStreamDataSource(1024);
//TransferState state = client.asynchPut(this.relPath, source, null, append);