@SuppressWarnings("unchecked")
 public static <T extends AbstractFixedEstimator> T factory(
     PartitionEstimator p_estimator, CatalogContext catalogContext) {
   AbstractFixedEstimator estimator = null;
   ProjectType ptype = ProjectType.get(catalogContext.database.getProject());
   switch (ptype) {
     case TPCC:
       estimator = new FixedTPCCEstimator(p_estimator);
       break;
     case TM1:
       estimator = new FixedTM1Estimator(p_estimator);
       break;
     case SEATS:
       estimator = new FixedSEATSEstimator(p_estimator);
       break;
     case VOTER:
       estimator = new FixedVoterEstimator(p_estimator);
       break;
     default:
       estimator = new DefaultFixedEstimator(p_estimator);
   } // SWITCH
   return ((T) estimator);
 }