fieldReply.getValues().addAll(offeredStreamMethods);
dataForm.getFields().add(fieldReply);
StreamInitiation siResponse = new StreamInitiation(new FeatureNegotiation(dataForm));
final Lock lock = new ReentrantLock();
final Condition byteStreamOpened = lock.newCondition();
final ByteStreamSession[] byteStreamSessions = new ByteStreamSession[1];
final List<Exception> negotiationExceptions = new ArrayList<>();
// Before we reply with the chosen stream method, we
// register a byte stream listener, because we expect the initiator to open a byte stream with us.