class BDBMessageStore extends AbstractBDBMessageStore {

    @Override
    public void onDelete(ConfiguredObject<?> parent)
    {
        if (isMessageStoreOpen())
        {
            throw new IllegalStateException("Cannot delete the store as store is still open");
        }

        FileBasedSettings fileBasedSettings = (FileBasedSettings)parent;
        String storePath = fileBasedSettings.getStorePath();

        if (storePath != null)
        {
            if (LOGGER.isDebugEnabled())
            {
                LOGGER.debug("Deleting store : {}", storePath);
            }

            File configFile = new File(storePath);
            if (!FileUtils.delete(configFile, true))
            {
                LOGGER.info("Failed to delete the store at location : {} ", storePath);
            }
        }
    }

    public  BDBMessageStore();
    public  BDBMessageStore(EnvironmentFacadeFactory environmentFacadeFactory);

}