Java library for merging objects