Change to EngineServiceImpl.java, to resolve thread problem in headless HPC mode.