class OptionsHelper {

  public static String applyRule(String ruleName, String serverOptStr, boolean value) throws OptionsException {
    throwOptionsExceptionIfConditionFails(isNotBlank(serverOptStr), "Null or Empty server options spec");

    if (isBlank(ruleName)) {
      if (value) {
        return OPTPFX + serverOptStr;
      }
    } else {
      throwOptionsException("Unrecognized option rule name in options parser: '%s'", ruleName);
    }

    return EMPTY;
  }

  private  OptionsHelper();

}