Searches an entity definition by its name.
A smart pointer to the found entity definition. If the entity is not found, the method returns a NULL smart pointer.