library.getSlot( ILibraryModel.THEMES_SLOT ).add( theme );
ModelUtil.insertCompatibleThemeToLibrary( library, theme );
	public void end( ) throws SAXException	{		Library library = (Library) getElement( );		Object themeObj = getElement( ).getLocalProperty( module,				IModuleModel.THEME_PROP );		if ( themeObj != null )			return;		// do the compatibility work for the library without the theme				Theme theme = null;		ContainerSlot themes = module.getSlot( ILibraryModel.THEMES_SLOT );		for ( int i = 0; i < themes.getCount( ); i++ )		{			Theme tmpTheme = (Theme) themes.getContent( i );			if ( ModelMessages.getMessage( Theme.DEFAULT_THEME_NAME )					.equalsIgnoreCase( tmpTheme.getName( ) ) )			{				theme = tmpTheme;				break;			}		}		if ( theme == null )		{			theme = new Theme( ModelMessages					.getMessage( Theme.DEFAULT_THEME_NAME ) );			library.getSlot( ILibraryModel.THEMES_SLOT ).add( theme );		}		library.setProperty( Module.THEME_PROP, new ElementRefValue( null,				theme ) );		super.end( );	}