added java config example