public void getList(@Parameter("tag") String tag, @Parameter("template") String template) throws IllegalArgumentException, IllegalAccessException, InstantiationException, SQLException, XMLException {
List<DBTypesBean> beans = DbAccess.typesAccess.getTableRecords();
Document xml = null;
if (beans != null) {
xml = new XMLList(beans, true).toXML("data");
} else {
xml = XMLUtils.createXML("data");
}
ContentObject.getInstance().setData(tag, xml, template, new HashMap<String, Object>() {{