open fun entity(name: String, role: String? = null): Entity
Returns the entity with the specified name and optional role.