generate listByReference method in __postExtend