if (testDetail.getNode().getParentNode() != null) {
String testNodeName = testDetail.getNode().getParentNode().getNodeName();
if (timeNodeNameSet.contains(testNodeName)) {
String testDateStr = testDetail.getValue();
String controlDateStr = difference.getControlNodeDetail().getValue();
DatatypeFactory datatypeFactory;
try {
datatypeFactory = DatatypeFactory.newInstance();
} catch (DatatypeConfigurationException e) {
throw new RuntimeException(e);
}
XMLGregorianCalendar test = datatypeFactory.newXMLGregorianCalendar(testDateStr);
XMLGregorianCalendar control =
datatypeFactory.newXMLGregorianCalendar(controlDateStr);
if (TimeZone.getDefault().useDaylightTime() && TimeZone.getDefault().getRawOffset() == 0) {
test.setTimezone(60);
}
if (test.compare(control) == DatatypeConstants.EQUAL)
return RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL;