router example for java