if ("S3".equalsIgnoreCase(providerId)) {
providerCredentials = new AWSCredentials(
myProperties.getStringProperty("accesskey", null),
myProperties.getStringProperty("secretkey", null));
} else if ("GS".equalsIgnoreCase(providerId)) {
providerCredentials = new GSCredentials(
myProperties.getStringProperty("accesskey", null),
myProperties.getStringProperty("secretkey", null));
}
}