plugin java code