public Map < String , ClientWidgetInfo > securityClone ( Map < String , ClientWidgetInfo > widgetInfo ) { Map < String , ClientWidgetInfo > res = new HashMap < String , ClientWidgetInfo > ( ) ; for ( Map . Entry < String , ClientWidgetInfo > entry : widgetInfo . entrySet ( ) ) { ClientWidgetInfo value = entry . getValue ( ) ; if ( ! ( value instanceof ServerSideOnlyInfo ) ) { res . put ( entry . getKey ( ) , value ) ; } } return res ; }
Clone a widget info map considering what may be copied to the client .