public void modelCopyToForm ( Model model , ModelForm form ) throws Exception { try { PropertyUtils . copyProperties ( form , model ) ; } catch ( Exception e ) { String error = " Model:" + model . getClass ( ) . getName ( ) + " copy To ModelForm:" + form . getClass ( ) . getName ( ) + " error:" + e ; Debug . logError ( error , module ) ; throw new Exception ( error ) ; } }
for old version below 1 . 4