public function registerPackages($package, $path)
    {
        $this->updateLog("info", "Preparing package {$package} for registration with path {$path}.");

        $package = trim($package, "\\");
        $package = $package . "\\";

        $path = rtrim($path, DIRECTORY_SEPARATOR);
        $path = $path . "/";

        $path_registered = $this->registrationExists($package, $path);

        if (!$path_registered) {
            $this->packages[$package][] = $path;

            $this->updateLog("info", "Registered index {$package} as {$path}");
        }
    }