Adding java config to calculator sample as well