DebuggerSettings () { try { final DebuggerSettings cloned = (DebuggerSettings)super.clone(); cloned.myContentStates = new HashMap<>(); for (Map.Entry<String, ContentState> entry : myContentStates.entrySet()) { cloned.myContentStates.put(entry.getKey(), entry.getValue().clone()); } cloned.mySteppingFilters = new ClassFilter[mySteppingFilters.length]; for (int idx = 0; idx < mySteppingFilters.length; idx++) { cloned.mySteppingFilters[idx] = mySteppingFilters[idx].clone(); } cloned.myCapturePoints = cloneCapturePoints(); return cloned; } catch (CloneNotSupportedException e) { LOG.error(e); } return null; }