final String[] queryNames = kettleDataFactory.getQueryNames();
for (int i = 0; i < queryNames.length; i++)
{
final String queryName = queryNames[i];
final KettleTransformationProducer prod = kettleDataFactory.getQuery(queryName);
final TransformationProducerWriteHandler handler = lookupWriteHandler(prod);
handler.writeKettleRepositoryProducer(bundle, fileName, xmlWriter, queryName, prod);
}
xmlWriter.writeCloseTag();
xmlWriter.close();