I am not sure if this is right forum, but I have not found any other.
It works fine when using autocomplete for global classes like Math, Number, etc.
engine.put("obj", new MyClass());
So when i type obj.
in editor, it would suggest methods of MyClass