Mavenize the thing

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix cast from Integer to int

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>