Made getEntity() final