docs: public DbLicense resolve(final String licenseId) {
  
          for (final Entry<String, DbLicense> regexp : licensesRegexp.entrySet()) {
              try {
                  if (licenseId.matches(regexp.getKey())) {
                      return regexp.getValue();
                  }
              } catch (PatternSyntaxException e) {
                  LOG.error("Wrong pattern for the following license " + regexp.getValue().getName(), e);
                  continue;
              }
          }
  
          if(LOG.isWarnEnabled()) {
              LOG.warn(String.format("No matching pattern for license %s", licenseId));
          }
          return null;
      }