This code snippet is supposed to get the page properties in sling.
Why am I receiving this error: Please check if the declared type is right
and if the method exists.
private String properties;
public void setProperties(String properties){
this.properties = property;
ValueMap property = (ValueMap) properties.getAttribute("properties");
pageTitle = property.get("pageTitle", "");
}