try{
SwingConfigDocument swingConfigDoc=SwingConfigDocument.Factory.parse(new File(swingConfigFile));
SwingConfigDocument.SwingConfig swingConfig=swingConfigDoc.getSwingConfig();
ActionEntry[] actions=swingConfig.getActionEntryArray();
for (int i = 0; i < actions.length; i++) {
ActionEntry actionEntry = actions[i];
swingConfigMap.put(String.valueOf(actionEntry.getId()), actionEntry);
}
}catch(Exception e){
throw new SwingObjectsException("error.severe.SF001",ErrorSeverity.SEVERE,
"Error while parsing swing-config.xml",e,SwingActionFactory.class);
}