final Collection tuples = new ArrayList();
for( Iterator iterator = tupleMaps.iterator(); iterator.hasNext(); )
{
nameToValue = (Map)iterator.next();
final Tuple tuple = new Tuple();
tuples.add( tuple );
tuple.setRecordClassName( recordClassName );
tuple.setTitle( title );
tuple.setAttributeNames( attributeNames );
for( Iterator iterator2 = nameToValue.entrySet().iterator(); iterator2.hasNext(); )
{
final Map.Entry entry = (Map.Entry)iterator2.next();
tuple.setValue( (String)entry.getKey(), entry.getValue() );
}
}
return (Tuple[])tuples.toArray( new Tuple[ tuples.size() ] );
}