copy an example for reactor-samples and make it java7 compatible