JingleFileTransfer.File jingleFile = new JingleFileTransfer.File(file.getName(), file.length(), new Date(file.lastModified()), null, description);
JingleFileTransfer jingleFileTransfer = new JingleFileTransfer(jingleFile);
String ibbSessionId = UUID.randomUUID().toString();
InBandBytestreamsTransportMethod ibbTransportMethod = new InBandBytestreamsTransportMethod(ibbSessionId, 4096);
Jingle.Content content = new Jingle.Content("a-file-offer", Jingle.Content.Creator.INITIATOR, jingleFileTransfer, ibbTransportMethod);
final JingleSession jingleSession = jingleManager.createSession(responder, content);
final Lock lock = new ReentrantLock();