I'm pretty new to Java so bear with me. I can't for the life of me figure out why I'm getting a cannot find symbol error on resourceResolver.resolve. When on the line above it I'm defining the variable. Maybe this is something simple I'm missing but I can't figure this out and I feel like I've stared at this way to long.
private static final String ROOTCHILD = "rootChild";
public void setResource(Resource resource) {
this.resource = resource;
}
public void setProperties(ValueMap properties) {
this.properties = properties;
}
public Page getRootPage() {
ResourceResolver resourceResolver = getResource().getResourceResolver();
return (this.properties != null)
? resourceResolver.resolve(
properties.get( ROOTCHILD,currentPage.getPath())).adaptTo(Page.class)
: null;
}