String filename = getSessionPreferencesFilename(beanType);
if (filename.length() == 0) {
return getEmptyPreferencesBean(beanType);
}
try {
XMLBeanReader reader = new XMLBeanReader();
File file = new File(userSettingsFolder, filename);
reader.load(file, getSessionPreferencesClassloader(beanType));
Iterator<Object> it = reader.iterator();
if (it.hasNext()) {
prefBean = (IFirebirdManagerSessionPreferencesBean)it.next();
}
} catch (FileNotFoundException eNotFound) {
log.info(filename + " not found. It will be created!");