// Must not be any child by that name, so now look for a property on the parent node ...
return getProperty(primaryItemPath.getLastSegment().getName());
}
}
I18n msg = JcrI18n.primaryItemNameForPrimaryTypeIsNotValid;
throw new ItemNotFoundException(msg.text(primaryType.getName(), primaryItemNameString, location(), workspaceName()));
} catch (ValueFormatException error) {
I18n msg = JcrI18n.primaryItemNameForPrimaryTypeIsNotValid;
throw new ItemNotFoundException(msg.text(primaryType.getName(), primaryItemNameString, location(), workspaceName()));
} catch (PathNotFoundException error) {
I18n msg = JcrI18n.primaryItemDoesNotExist;