protected void copyProperties ( Object dest , Object source ) { try { BeanUtils . copyProperties ( dest , source ) ; } catch ( Exception e ) { String errorMessage = MessageFormat . format ( "M:{0};;E:{1}" , e . getCause ( ) . getMessage ( ) , e . toString ( ) ) ; throw new WebApplicationException ( errorMessage , Status . BAD_REQUEST ) ; } }
Copies properties .