The reason why I add this method in PortalImpl, is that I have checked with shuyang, and he told me it's not a good idea to add it to OrderByComparatorFactoryImpl, because we passed an http servlet request as a parameter, it's better to put this in web layer. So I think PortalImpl is a good place to place it.