if (jingle.getAction() == Jingle.Action.SESSION_TERMINATE) {
throw new FileTransferRejectedException();
}
if (jingle.getAction() == Jingle.Action.SESSION_ACCEPT) {
// TODO respect responders transport method.
InBandByteStreamManager inBandByteStreamManager = xmppSession.getExtensionManager(InBandByteStreamManager.class);
inBandByteStreamManager.initiateSession(responder, ibbSessionId, 4096);
}
return new JingleFileTransferSession(jingleSession);
}