Apache Commons Beanutils package provides convenient methods to help you copy data between Java beans.
To copy properties between beans you can use:
where target and source are both Java beans.
If type conversion is needed, then use
Don’t use nested classes for this. I had some problems using these utilities with my nested classes