Simplify overriding of getChildren method.

Change-Id: I1759654ddb991916e3022beb44141f939426a0b3