Fixing issue with getBean not being defined