changed the boolean allowAggregationFramework into an enumeration allowing the user to be specific about which framework should be used.