Replace xml spring configuration with java class configuration