Java scripting implementation