Deprecated getChildren method and replace it with getAllChildren