Added JavaConfig support for generic services