TpHandleType has been renamed to TpEntityType