Emmet jse = Emmet.getSingleton();
Scriptable tabstopData = (Scriptable) jse.execJSFunction("javaExtractTabstops", text);
if (tabstopData != null) {
text = Context.toString(ScriptableObject.getProperty(tabstopData, "text"));
NativeArray tabstops = (NativeArray) ScriptableObject.getProperty(tabstopData, "tabstops");
NativeObject tabstopItem;
for (int i = 0; i < tabstops.getLength(); i++) {
tabstopItem = (NativeObject) ScriptableObject.getProperty(tabstops, i);
addTabStopToGroup(
Context.toString(ScriptableObject.getProperty(tabstopItem, "group")),
(int) Context.toNumber(ScriptableObject.getProperty(tabstopItem, "start")),
(int) Context.toNumber(ScriptableObject.getProperty(tabstopItem, "end")));