Improved the return value for the getChildClass method