if(type.equals("AMAZON-S3")){
return new AmazonS3Driver(driverId, accessKey, secretKey);
}else if(type.equals("GOOGLE-STORAGE")){
return new GoogleStorageDriver(driverId, accessKey, secretKey);
}else if(type.equals("WINDOWS-AZURE")){
return new WindowsAzureDriver(driverId, accessKey, secretKey);
}else if(type.equals("RACKSPACE")){
return new RackSpaceDriver(driverId, accessKey, secretKey);
}
return null;