Add code of GenericTree into PhraseTreeImpl. Add getProfileCandidates() method.