cleaning up the spring configuration
avoid findbugs warning