public function registerMap($prefix, $library)
    {
        // check the structure of location if it contains metadata
        if (is_array($library)) {
            $path = $library['Path'];
            $this->rules[$prefix] = $library;
        } else {
            $path = $library;
        }

        $this->maps[$prefix] = $path;
    }