working with extended classes with spring integration