Modified resource extraction to use getProtocol