protected function build($type)
    {
        if ($concrete = array_get($this->aliases, $type)) {
            return $this->resolved[$type] = new $concrete($this);
        }

        throw new InternalServerErrorException;
    }