ContextBuilder contextBuilder = ContextBuilder.newBuilder(profile.getProvider());
if (profile.getProvider().equals(PROVIDER_FILESYSTEM)) {
// use endpoint as fs basedir, see: http://code.google.com/p/jclouds/issues/detail?id=776
properties.setProperty(FilesystemConstants.PROPERTY_BASEDIR, profile.getEndpoint());
contextBuilder.endpoint(profile.getEndpoint());
//properties.setProperty(PROPERTY_CREDENTIAL, "dummy");
} else if (BLOBSTORE_PROVIDERS.contains(profile.getProvider())) {
if (profile.getEndpoint() != null) {
contextBuilder.endpoint(profile.getEndpoint());
}