/// <summary> /// Gets the handler with the given [class] name. /// </summary> /// <exception cref="NotSupportedException"/> public PackageHandlerBase GetHandlerByName(string name) { if (PackageHandlers.TryGetValue(name, out var handler)) { return(handler); } else { throw new NotSupportedException("A package handler with the name \"" + name + "\" was not registered."); } }