I hope this is the right thread for my question.
Is this possible?
Here is an example of Script that I may use
//instance of "Semaphores" Java class through Rhino engine
//this class has several methods
var sem = new Packages.Semaphores();
//here i would like to have code completion