entity is dependency injectable.