You have to duplicate/clone it. As it's a ValueProxy
it shouldn't be a problem. The issue is that there's no easy and clean way to clone a proxy.
The cleanest solution is to use AutoBeanUtils.getAutoBean
and then an AutoBeanVisitor
to visit each property and set it on another proxy.
An easier way is to serialize the proxy into a ProxyStore
and deserialize it, which will create a distinct proxy.