Experimental code using Apache commons-chain2