Converted to using spring config.