https://issues.jboss.org/browse/WFLY-405 a bit simplified and generalized patching artifact tree walking and node handling