if (parent != null) {
// Get content resource of the page
final Resource parentContentResource = parent.getChild("jcr:content");
if (parentContentResource != null) {
final InheritanceValueMap pageProperties = new HierarchyNodeInheritanceValueMap(parentContentResource);
errorsPath = pageProperties.getInherited(ERROR_PAGE_PROPERTY, String.class);
// could not find inherited property
if (errorsPath == null) {
for (final Map.Entry<String, String> mapPage : pathMap.entrySet()) {
if (errorResourcePath.startsWith(mapPage.getKey())) {