public void init(CacheLoaderConfig cfg, Cache cache, Marshaller m) throws CacheLoaderException {
this.config = (S3CacheStoreConfig) cfg;
S3Bucket cloudsBucket;
S3Connection cloudsConnection;
try {
cloudsConnection = config.getConnectionClass() != null ? (S3Connection) Util.getInstance(config.getConnectionClass()) : new JCloudsConnection();
cloudsBucket = config.getBucketClass()!=null ? (S3Bucket) Util.getInstance(config.getBucketClass()) : new JCloudsBucket();
} catch (Exception e) {
throw new CacheLoaderException(e);
}
init(cfg, cache, m, cloudsConnection, cloudsBucket);