private URL toUrl(Resource resource) {
        try {
            return resource.getURL();
        } catch (IOException e) {
            throw new IllegalStateException("Failed to get url from " + resource.getDescription(), e);
        }
    }
@author Woonduk Kang(emeroad)
@author HyunGil Jeong
@author Taejin Koo
commons-server/src/main/java/com/navercorp/pinpoint/common/server/util/ServerTraceMetadataLoaderService.java