context.put("capacity", "1000");
context.put("transactionCapacity", "1000");
Configurables.configure(source, context);
Configurables.configure(channel, context);
ChannelSelector rcs = new ReplicatingChannelSelector();
rcs.setChannels(Lists.newArrayList(channel));
source.setChannelProcessor(new ChannelProcessor(rcs));
source.start();
Transaction transaction = channel.getTransaction();