ArrayList retVal = new ArrayList();
int length = allNodes.getLength();
for (int i = 0; i < length; i++) {
DOMNode node = allNodes.item(i);
if (node instanceof ACSTargetElement) {
ACSTargetElement currentElement = ((ACSTargetElement)node);
// ... leave out the current target TODO: avoid cyclic relations!
if (!currentElement.getName().equals(aTarget.getName())) retVal.add(currentElement);
}
}
return retVal;
}