try {
if (sosString.parseToString(settingsFile).length() > 0 && sosString.parseToString(settingsProfilename).length() > 0) {
SOSSettings settings = null;
Properties p = null;
if (new java.io.File(settingsFile).getName().endsWith(".xml")) {
settings = new SOSXMLSettings(settingsFile, settingsProfilename, sosLogger);
p = settings.getSection(settingsApplicationname, settingsProfilename);
}
else {
settings = new SOSProfileSettings(settingsFile, settingsProfilename, sosLogger);
p = settings.getSection();