prevent ConcurrentModificationException

If a child is removed while iterating over the original list of
children, a ConcurrentModificationException is thrown. Therefor we first
make a copy of the list applying 'asList()' on the axis.

Signed-off-by: Florian Thienel <florian@thienel.org>
3 files changed