/** * Method performs initialization of the provider it delegates to. * * @throws MetadataProviderException in case initialization fails */ public void initialize() throws MetadataProviderException { if (getDelegate() instanceof AbstractMetadataProvider) { log.debug("Initializing delegate"); AbstractMetadataProvider provider = (AbstractMetadataProvider) getDelegate(); provider.initialize(); } else { log.debug("Cannot initialize delegate, doesn't extend AbstractMetadataProvider"); } }