public static String[] getFunctionNames() {
   String[] names = new String[SupportAggMFFunc.values().length];
   for (int i = 0; i < names.length; i++) {
     names[i] = SupportAggMFFunc.values()[i].getName();
   }
   return names;
 }
 public static SupportAggMFFunc fromFunctionName(String functionName) {
   for (SupportAggMFFunc func : SupportAggMFFunc.values()) {
     if (func.getName().equals(functionName)) {
       return func;
     }
   }
   throw new RuntimeException("Unrecognized function name '" + functionName + "'");
 }