in src/main/java/org/apache/commons/configuration2/io/VFSFileSystem.java [129:166]
private FileSystemOptions getOptions(final String scheme) {
if (scheme == null) {
return null;
}
final FileSystemOptions opts = new FileSystemOptions();
final FileSystemConfigBuilder builder;
try {
builder = getManager().getFileSystemConfigBuilder(scheme);
} catch (final Exception ex) {
return null;
}
final FileOptionsProvider provider = getFileOptionsProvider();
if (provider != null) {
final Map<String, Object> map = provider.getOptions();
if (map == null) {
return null;
}
int count = 0;
for (final Map.Entry<String, Object> entry : map.entrySet()) {
try {
String key = entry.getKey();
if (FileOptionsProvider.CURRENT_USER.equals(key)) {
key = "creatorName";
}
setProperty(builder, opts, key, entry.getValue());
++count;
} catch (final Exception ex) {
// Ignore an incorrect property.
continue;
}
}
if (count > 0) {
return opts;
}
}
return null;
}