public void populate ( Map < String , String [ ] > map ) { for ( Entry < String , String [ ] > entry : map . entrySet ( ) ) { String property = entry . getKey ( ) ; if ( model . typeMap . containsKey ( property ) ) { String [ ] values = entry . getValue ( ) ; if ( values . length > 1 ) { throw new UnsupportedOperationException ( property + " has multivalue " + values ) ; } if ( values . length == 1 ) { set ( property , values [ 0 ] ) ; } } } }
Convenience method to support ServletRequest .