Implement save of entity