throw new NullPointerException();
}
try
{
final TableDataFactory tableDataFactory = (TableDataFactory) dataFactory;
final AttributeList rootAttrs = new AttributeList();
if (xmlWriter.isNamespaceDefined(InlineDataFactoryModule.NAMESPACE) == false)
{
rootAttrs.addNamespaceDeclaration("data", InlineDataFactoryModule.NAMESPACE);
}
xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "inline-datasource", rootAttrs, XmlWriterSupport.OPEN);
final String[] tables = tableDataFactory.getQueryNames();
for (int i = 0; i < tables.length; i++)
{
final String tableName = tables[i];
final TableModel tableModel = tableDataFactory.queryData(tableName, null);
xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "inline-table", "name", tableName, XmlWriterSupport.OPEN);
xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "definition", XmlWriterSupport.OPEN);
final Class[] colTypes = new Class[tableModel.getColumnCount()];