boolean result = false;
String pathName = getPathName(path, name);
List expectedAndNotReceived = getChildNames(expected, pathName);
List receivedAndNotExpected = getChildNames(received, pathName);
expectedAndNotReceived.removeAll(getChildNames(received, pathName));
receivedAndNotExpected.removeAll(getChildNames(expected, pathName));
List illegalElements = new ArrayList(expectedAndNotReceived);
illegalElements.addAll(receivedAndNotExpected);
illegalElements = removeLegalNamesFromList(pathName, illegalElements);