*/
public void destroy() {
if (getDelegate() instanceof AbstractMetadataProvider) {
log.debug("Destroying delegate");
AbstractMetadataProvider provider = (AbstractMetadataProvider) getDelegate();
provider.destroy();
} else {
log.debug("Cannot destroy delegate, doesn't extend AbstractMetadataProvider");
}
}