if( !keys.isEmpty() ){
XElement xmaximized = element.addElement( "maximized" );
for( String key : keys ){
Path mode = lastMaximizedMode.get( key );
Location location = lastMaximizedLocation.get( key );
if( mode != null || location != null ){
XElement xitem = xmaximized.addElement( "item" );
xitem.addString( "id", key );
if( mode != null ){
xitem.addElement( "mode" ).setString( mode.toString() );
}
if( location != null ){
converter.writePropertyXML( converter.convertToSetting( location ), xitem.addElement( "location" ) );
}
}