boolean (BreakpointState state1, BreakpointState state2, boolean ignoreTimestamp) { long timeStamp1 = state1.getTimeStamp(); long timeStamp2 = state2.getTimeStamp(); if (ignoreTimestamp) { state1.setTimeStamp(timeStamp2); } Element elem1 = XmlSerializer.serialize(state1); Element elem2 = XmlSerializer.serialize(state2); boolean res = !JDOMUtil.areElementsEqual(elem1, elem2); if (ignoreTimestamp) { state1.setTimeStamp(timeStamp1); } return res; }