@Override
    public Resource createRelative(String relativePath) {
        String pathToUse = StringUtils.applyRelativePath(this.path, relativePath);
        return (this.clazz != null ? new ClassPathResource(pathToUse, this.clazz) :
            new ClassPathResource(pathToUse, this.classLoader));
    }
This implementation creates a ClassPathResource, applying the given path
relative to the path of the underlying resource of this descriptor.

see org.springframework.util.StringUtils#applyRelativePath(String, String)
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/core/io/ClassPathResource.java