boolean newSourceElementAdded = false;
try
{
// do not change state of original source provider,
// instead make a copy.
SourceProvider sourceProvider
= controllerState.getSourceProvider().copy();
sourceProvider.init(configurationHandlers, controllerState);
while (sourceProvider.hasNext())
{
Source source = sourceProvider.next();
SourceElement rootElement = source.getRootElement();
SourceProcessConfiguration sourceProcessConfiguration
= output.getSourceProcessConfiguration();
List<SourceTransformerDefinition> transformerDefinitions
= sourceProcessConfiguration.getTransformerDefinitions();