+package eu.etaxonomy.taxeditor.remoting.cache;
+
+import javax.sql.DataSource;
+
+import org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl;
+
+import eu.etaxonomy.cdm.database.CdmDataSource;
+import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
+
+/**
+ * This is a very preliminary class to get the model cache running. Need to better understand how
+ * the datasource works with hibernate service registry before implementing the correct way.
+ * Or use a running source.
+ * @author a.mueller
+ *
+ */
+public class CdmModelCacherConnectionProvider extends DatasourceConnectionProviderImpl{
+
+ public CdmModelCacherConnectionProvider() {
+ super();
+ setDataSource(getDataSourcePreliminary());
+ }
+
+ private DataSource getDataSourcePreliminary() {
+ String database = "xyz";
+ String path = "C:\\Users\\a.mueller\\.cdmLibrary\\writableResources\\h2\\LocalH2_" + database;
+ String username = "sa";
+ CdmDataSource dataSource = CdmDataSource.NewH2EmbeddedInstance("cdmTest", username, "", path, NomenclaturalCode.ICNAFP);
+ return dataSource;
+ }
+
+
+
+}