docs: public static String expand(String keyString, Map properties) {
          String expandedLine = lineExpand(keyString, properties);
          if (resolvesToLiteral(expandedLine) || expandedLine.equals(keyString)) {
              return expandedLine;
          }
          return expand(expandedLine, properties);
      }