Updating to java config