/**
   * Method to add and enter key add to the given Group. Will use given lineContext and
   * expressionEvaluator if action string starts with '@{'.
   *
   * @param group
   * @param lineContext
   * @param expressionEvaluator
   * @param enterKeyAction
   */
  protected void addEnterKeyDataAttributeToGroup(
      Group group,
      Map<String, Object> lineContext,
      ExpressionEvaluator expressionEvaluator,
      String enterKeyAction) {
    if (StringUtils.isNotBlank(enterKeyAction)) {
      String action = enterKeyAction;
      if (action.contains("@{")) {
        action = expressionEvaluator.evaluateExpressionTemplate(lineContext, enterKeyAction);
      }

      group.addDataAttribute(
          UifConstants.DataAttributes.ENTER_KEY,
          KRADUtils.convertToHTMLAttributeSafeString(action));
    }
  }