public static void copyProperties ( Object dest , Object src ) { if ( dest == null || src == null ) return ; Map < String , Object > values = RecursiveObjectReader . getProperties ( src ) ; setProperties ( dest , values ) ; }
Copies content of one object to another object by recursively reading all properties from source object and then recursively writing them to destination object .