code: public static String quote(String identifier) {
          if (StringUtils.isEmpty(identifier)) {
              return identifier;
          }
  
          String res = identifier.trim();
  
          if (!res.startsWith("\"")) {
              res = "\"" + res;
          }
  
          if (!res.endsWith("\"")) {
              res = res + "\"";
          }
  
          return res;
  
      }
docs: Quoting for working with uppercase
  
  @param identifier the identifier
  @return the string