How to copy non-persistable entity?

I have non-persistable entity as I am using rest call to import values. I want to store this values. I want to copy this values into another database.  How can I do this? Please help.  
1 answers

Have you checked you the Clone java action in the community commons? Might be what you’re looking for.

Else you could create a new object and just set the values from the old object to the new.