adding java config of datastore.