code: @SuppressWarnings("MagicNumber")
      public static Optional<JdbcDatabase> findDatabase(String jdbcUrl) {
          if (StringUtils.isNotEmpty(jdbcUrl)) {
              if (!jdbcUrl.startsWith("jdbc")) {
                  throw new IllegalArgumentException("JDBC URLs must start with 'jdbc'");
              }
              String partialUrl = jdbcUrl.substring(5);
              String prefix = partialUrl.substring(0, partialUrl.indexOf(':')).toLowerCase();
  
              return databases.stream().filter(db -> db.containsPrefix(prefix)).findFirst();
          }
          return Optional.empty();
      }
docs: Searches defined database where the URL prefix matches one of the prefixes defined in a {@link JdbcDatabase}.
  The prefix is determined by:
  <p>
  jdbc:<prefix>:...
  
  @param jdbcUrl The connection URL
  @return An optional {@link JdbcDatabase}