Made Spring class interface more flexible to extend.