protected void recommendFrom ( String label , Set < BindingElement > source , Set < Binding > current ) { this . bindingFactory . setName ( getName ( ) ) ; boolean hasRecommend = false ; for ( final BindingElement sourceElement : source ) { final Binding wrapElement = this . bindingFactory . toBinding ( sourceElement ) ; if ( ! current . contains ( wrapElement ) ) { if ( ! hasRecommend ) { LOG . info ( MessageFormat . format ( "Begin recommendations for {0}" , //$NON-NLS-1$ label ) ) ; hasRecommend = true ; } LOG . warn ( MessageFormat . format ( "\t{1}" , //$NON-NLS-1$ label , sourceElement . getKeyString ( ) ) ) ; } } if ( hasRecommend ) { LOG . info ( MessageFormat . format ( "End recommendations for {0}" , //$NON-NLS-1$ label ) ) ; } else { LOG . info ( MessageFormat . format ( "No recommendation for {0}" , //$NON-NLS-1$ label ) ) ; } }
Provide the recommendations .