add getEntity by parameters and remove log duplicate