{
PlexusConfiguration[] children = source.getChildren();
for ( int i = 0; i < children.length; i++ )
{
PlexusConfiguration child = children[i];
int count = child.getChildCount();
if ( count > 0 )
{
// ----------------------------------------------------------------------
// If we have a child with children itself then we must make a configuration
// with the name of the child, add that child to the processed configuration
// and walk the child.
//
// <configuration>
// <child>
// <entity>
// <foo>bar</foo>
// </entity>
// </child>
// </configuration>
//
// ----------------------------------------------------------------------
XmlPlexusConfiguration processedChild = new XmlPlexusConfiguration( child.getName() );
copyAttributes( child, processedChild );
processed.addChild( processedChild );
walk( child, processedChild, variables );
}
else
{
String elementName = child.getName();
// ----------------------------------------------------------------------
// Check to see if this element name matches the id of any of our
// source resource handlers.
// ----------------------------------------------------------------------