Made setParent protected