protected static OperationType getOperationType(Map<String, String> commandParameters) {
    String value = getCommandParameterValue(commandParameters, OPERATION_TYPE);
    if (StringUtils.isEmpty(value)) {
      return OperationType.DEFAULT;
    } else {
      return OperationType.valueOf(value.toUpperCase());
    }
  }
Given a (command parameter) Map, attempts to safely retrieve the "operation_type" property.

@param commandParameters a Map containing the dictionary of data to interrogate
@return an OperationType
ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/KerberosServerAction.java