spring injection in case model was detached