*/
public TableModel queryData(final String queryName, final DataRow parameters) throws ReportDataFactoryException
{
// domain must exist and be loaded in the domain repository already
// parse the metadata query
final Query queryObject = parseQuery(queryName);
if (queryObject.getLogicalModel().getPhysicalModel() instanceof SqlPhysicalModel) {
try
{
final DatabaseMeta databaseMeta = getDatabaseMeta(queryObject);
final DatabaseMeta activeDatabaseMeta = getActiveDatabaseMeta(databaseMeta, parameters);
final MappedQuery mappedQuery = generateSQL(queryObject, activeDatabaseMeta, parameters);