[HapProcess] Add a new method: getGMainLoop().