Added caching to getDefinitionByName().