TpHandleType has been renamed to TpEntityType
TplEntity has been replaced by TpEntityType