Java scripting plugin architecture example