added example for the JavaConfig support