// init of initiator and the session
String target1 = "testing-xen2-disk1";
String target2 = "testing-xen2-disk2";
Initiator initiator = new Initiator(Configuration.create());
initiator.createSession(target1);
initiator.createSession(target2);
// writing the first target multithreaded
final Future<Void> write1 = initiator.multiThreadedWrite(target1, writeData1, address, writeData1.capacity());
// writing the second target multithreaded
final Future<Void> write2 = initiator.multiThreadedWrite(target2, writeData2, address, writeData2.capacity());