SuspendPolicy (String policy) { if (DebuggerSettings.SUSPEND_ALL.equals(policy)) { return SuspendPolicy.ALL; } else if (DebuggerSettings.SUSPEND_THREAD.equals(policy)) { return SuspendPolicy.THREAD; } else if (DebuggerSettings.SUSPEND_NONE.equals(policy)) { return SuspendPolicy.NONE; } else { throw new IllegalArgumentException("unknown suspend policy"); } }