document resource retrieving method