}
private CacheLoaderConfig instantiateCacheLoaderConfig(Class clazz) {
// first see if the type is annotated
Class<? extends CacheLoaderConfig> cacheLoaderConfigType;
CacheLoaderMetadata metadata = (CacheLoaderMetadata) clazz.getAnnotation(CacheLoaderMetadata.class);
if (metadata == null) {
CacheLoader cl = (CacheLoader) Util.getInstance(clazz);
cacheLoaderConfigType = cl.getConfigurationClass();
} else {
cacheLoaderConfigType = metadata.configurationClass();
}
return Util.getInstance(cacheLoaderConfigType);
}