public boolean addMasterPageStyle ( final MasterPageStyle masterPageStyle ) { if ( this . masterPageStylesContainer . add ( masterPageStyle . getName ( ) , masterPageStyle ) ) { masterPageStyle . addEmbeddedStyles ( this ) ; return true ; } else return false ; }
Create a new master page style into styles container . No duplicate style name is allowed .