CAS-1377: Fixed issue with lost attributes on validation
CAS-1377: Redo the way dependencies are wired by spring.