public SlideContent getContent ( final SlideStep slideStep ) { SlideContent res = null ; if ( getSlide ( ) . getContent ( ) != null && ! getSlide ( ) . getContent ( ) . isEmpty ( ) ) { for ( final SlideContent sc : getSlide ( ) . getContent ( ) ) { if ( sc . getName ( ) != null && ! sc . getName ( ) . isEmpty ( ) && sc . getName ( ) . equals ( slideStep . name ( ) ) ) { res = sc ; } } } return res == null ? getDefaultContent ( ) : res ; }
Return the default content or null for the given step .