fix plugin calls in Java