protected function getMapping(string $clazz) : array {
		if(isset($this->cachedMapping[$clazz])) {
			return $this->cachedMapping[$clazz];
		}
		$ref = new \ReflectionClass($clazz);
		
		$mapping = array();
		
		foreach($this->mapping as $className => $config) {
			if($clazz === $className || $ref->isSubclassOf($className)) {
				$mapping = \array_merge($mapping, $config);
			}
		}
		
		$this->cachedMapping[$clazz] = $mapping;
		
		return $mapping;
	}