/** Returns null if the string is not a ModelName. */
  public static ModelName getModelName(String string) {
    if (StringUtils.isEmpty(string)) return null;

    try {
      return ModelName.valueOf(string.trim().toUpperCase());
    } catch (IllegalArgumentException ex) {
      // Did not find value in enum ModelName for the string, no problem.
      return null;
    }
  }
 /**
  * Checks if is cellular automaton.
  *
  * @return true, if is cA
  */
 public boolean isCA() {
   return modelName.getCategory().isCA();
 }
 /**
  * Checks if is iterated map.
  *
  * @return true, if is iterated map
  */
 public boolean isIteratedMap() {
   return modelName.getCategory().isIteratedMap();
 }
 /**
  * Gets the model category.
  *
  * @return the model category
  */
 public ModelCategory getModelCategory() {
   return modelName.getCategory();
 }