public static DBAggregationQueryConfigurationEntry lookupCurrentQueryConfigurationEntry(
            AggregationParser.Database databaseType) throws CannotLoadConfigurationException {
        DBAggregationConfigurationMapper mapper = loadDBAggregationConfigurationMapper();
        DBAggregationQueryConfigurationEntry entry = mapper.lookupEntry(databaseType.toString());
        if (entry != null) {
            return entry;
        } else {
            throw new CannotLoadConfigurationException("Cannot find a database section in the RDBMS "
                    + "configuration for the database: " + databaseType);
        }
    }
Isolates a particular RDBMS query configuration entry which matches the retrieved DB metadata.

@param databaseType the database type against which the entry should be matched.
@return the matching RDBMS query configuration entry.
@throws CannotLoadConfigurationException if the configuration cannot be loaded.
modules/siddhi-core/src/main/java/io/siddhi/core/aggregation/persistedaggregation/config/DBAggregationQueryUtil.java