}
public CaseDatabase newCaseDatabase(Hashtable env)throws WorkflowException
{
Store store=(Store)env.get(Constants.WORKFLOW_STORE_CASE);
SpiCaseDatabase gcdb=DatabaseRegistry.getCaseDatabase(store.getDriverClass());
try
{
SpiCaseDatabase gcdb_clone=(SpiCaseDatabase)gcdb.clone();
gcdb_clone.setStore(store);
gcdb_clone.setCaseIdGenerator(new SpiCaseIdGeneratorImpl());
return new CaseDatabaseImpl(gcdb_clone);
}
catch (CloneNotSupportedException e)
{
throw new WorkflowException(e);