return api.getEngineState();
}
public static void pause(int milliseconds) {
//flush out remaining commands in the command bundle before disconnection
BundleProcessor processor = SessionManager.getSession().getByClass(BundleProcessor.class);
processor.flush();
Helper.pause(milliseconds);
}