protected void writeSearchAndBeanMetawidget ( final Map < Object , Object > context , final int searchMetawidgetIndent , final int beanMetawidgetIndent , final Map < String , String > existingNamespaces ) { StringWriter stringWriter = new StringWriter ( ) ; this . searchMetawidget . write ( stringWriter , searchMetawidgetIndent ) ; context . put ( "searchMetawidget" , stringWriter . toString ( ) . trim ( ) ) ; stringWriter = new StringWriter ( ) ; this . beanMetawidget . write ( stringWriter , beanMetawidgetIndent ) ; context . put ( "beanMetawidget" , stringWriter . toString ( ) . trim ( ) ) ; Map < String , String > namespaces = this . searchMetawidget . getNamespaces ( ) ; namespaces . putAll ( this . beanMetawidget . getNamespaces ( ) ) ; namespaces . keySet ( ) . removeAll ( existingNamespaces . keySet ( ) ) ; context . put ( "metawidgetNamespaces" , namespacesToString ( namespaces ) ) ; }
Writes the search Metawidget the bean Metawidget and their namespaces into the given context .