hibernate will persist every changes made to entities during the session, so in ConfigChangeContentBuilder case, we should clone the entity first to not trigger unnecessary writes to the db