Changed the method of injection(Field injection -> Constructor injecton).