Implement bundle metadata API. Add a check for relevant entity.