public QuotaStore getQuotaStore(ApplicationContext ctx, String quotaStoreName)
throws ConfigurationException {
// lookup dependencies in the classpath
DefaultStorageFinder cacheDirFinder = (DefaultStorageFinder) ctx
.getBean("gwcDefaultStorageFinder");
TilePageCalculator tilePageCalculator = (TilePageCalculator) ctx
.getBean("gwcTilePageCalculator");
DataSource ds = null;
if (H2_STORE.equals(quotaStoreName)) {
return initializeH2Store(cacheDirFinder, tilePageCalculator);