code: protected String convertIdentifierPattern(final String pattern, boolean datanucleusFormat) {
      if (pattern == null) {
        return convertPattern("%", true);
      } else {
        return convertPattern(pattern, datanucleusFormat);
      }
    }
docs: Convert wildchars and escape sequence from JDBC format to datanucleous/regex