for ( int i = 0; i < metadataList.size( ); i++ )
{
// create a new metadata section
MetadataSectionDocument.MetadataSection metadataSection =
responseMetadata.addNewMetadataSection( );
MetadataEntry metadataEntry = (MetadataEntry) metadataList.get( i );
XmlObject metadata = metadataEntry.getMetadata( );
if ( metadata == null )
{
continue;
}