Adding Java configuration