Spring autowired variable is null when accessed from another class

Printable View