protected void readStreamAndSend(java.io.InputStream local, String fileName, Date startDate, ID target, final boolean launch) {
try {
final ID eclipseStageID = IDFactory.getDefault().createStringID(org.eclipse.ecf.example.collab.share.EclipseCollabSharedObject.ID);
final java.io.BufferedInputStream ins = new java.io.BufferedInputStream(local);
final java.io.File remoteFile = new File((new File(fileName)).getName());
final FileTransferParams sp = new FileTransferParams(remoteFile, getChunkPreference(), getDelayPreference(), null, true, -1, null);
final Object[] args = {view, target, ins, sp, eclipseStageID};
// Do it
new Thread(new Runnable() {
public void run() {
if (launch) {