}
parameters = database.getDatabaseChoice().getDataSource().getParam();
Unmarshaller unmarshaller = new Unmarshaller(dataSource);
UnmarshalHandler handler = unmarshaller.createHandler();
try {
handler.startDocument();
handler.startElement("data-source", null);
for (int i = 0; i < parameters.length; i++) {
param = (Param) parameters[i];
handler.startElement(param.getName(), null);
handler.characters(param.getValue().toCharArray(), 0, param.getValue().length());
handler.endElement(param.getName());
}
handler.endElement("data-source");
handler.endDocument();
} catch (SAXException e) {
_log.error ("Unable to parse <data-source> element.", e);
throw new MappingException ("Unable to parse <data-source> element.", e);
}