Remove dead code creating a rootNote that was never used
Remove dead affectation in variable never used
Remove default null value for buildSaveForm since the entity is always initialized before the call of that method
Add type User for the setUser method parameter