Implements the class resolver interface supporting class names and services. Hierarchy class
public ClassResolver::getInstanceFromDefinition($definition)