} finally {
lock.unlock();
}
Jingle jingle = response[0];
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);