633634635636637638639640641642643
boolean stopped = false; if(timeout > 0) stopped = domainMgr.stopInstanceWithinTime(timeout); if (!stopped) domainMgr.killRelatedProcesses(); } catch (Exception e) { throw new DomainException(e); } }