SpiUserDatabase gudb = DatabaseRegistry.getUserDatabase(DatabaseRegistry.WILLOW_DRIVER_CLASS);
if (gudb != null)
{
try
{
userDatabase = (SpiUserDatabase) gudb.clone();
SchemaContext schemaContext = new SchemaContext(WorkflowProperties.getSchemaContextFile());
userDatabase.setSchemaContext(schemaContext);
Store tmpStore=(this.store==null?WorkflowProperties.getUserStore():this.store);