Removed getCompositeChildren and fixed the problem with a smarter
getChildren implementation.