class ClassRelativeContextResource extends ClassPathResource implements ContextResource {

        private final Class<?> clazz;

        public ClassRelativeContextResource(String path, Class<?> clazz) {
            super(path, clazz);
            this.clazz = clazz;
        }

        @Override
        public String getPathWithinContext() {
            return getPath();
        }

        @Override
        public Resource createRelative(String relativePath) {<FILL_FUNCTION_BODY>}
    }

            String pathToUse = StringUtils.applyRelativePath(getPath(), relativePath);
            return new ClassRelativeContextResource(pathToUse, this.clazz);
        
<methods>public void <init>() ,public void <init>(java.lang.ClassLoader) ,public java.lang.ClassLoader getClassLoader() ,public org.hotswap.agent.util.spring.io.resource.Resource getResource(java.lang.String) ,public void setClassLoader(java.lang.ClassLoader) <variables>private java.lang.ClassLoader classLoader