in src/main/java/org/apache/sling/settings/impl/SlingSettingsServiceImpl.java [239:270]
private List<Options> readOptions(final BundleContext context) {
List<Options> optionsList = null;
final File file = context.getDataFile(OPTIONS_FILE);
if (file.exists()) {
FileInputStream fis = null;
ObjectInputStream ois = null;
try {
fis = new FileInputStream(file);
ois = new ObjectInputStream(fis);
optionsList = (List<Options>) ois.readObject();
} catch (final IOException ioe) {
throw new RuntimeException("Unable to read from options data file.", ioe);
} catch (ClassNotFoundException cnfe) {
throw new RuntimeException("Unable to read from options data file.", cnfe);
} finally {
if (ois != null) {
try {
ois.close();
} catch (final IOException ignore) {
}
}
if (fis != null) {
try {
fis.close();
} catch (final IOException ignore) {
}
}
}
}
return optionsList;
}