private static Pair<EventPair<String>, EventPair<Object>> getSettingValue(Attribute value) {
    try {
      final boolean booleanValue = value.getBooleanValue();
      return new Pair<>(OPTION_TYPE_FIELD.with("boolean"), OPTION_VALUE_FIELD.with(booleanValue));
    }
    catch (DataConversionException e1) {
      try {
        final int intValue = value.getIntValue();
        return new Pair<>(OPTION_TYPE_FIELD.with("integer"), OPTION_VALUE_FIELD.with(intValue));
      }
      catch (DataConversionException e2) {
        return null;
      }
    }
  }
private static Pair<EventPair<String>, EventPair<Object>> getSettingValue(Attribute value)