JBIDE-16405 Engines switcher in BrowserSim does not work on java7u51

code optimization, now everything is ok under LunaM4