@Nonnull
@Override
public Restriction createRestriction(@Nullable String oakPath, @Nonnull String jcrName, @Nonnull Value value) throws RepositoryException {
String oakName = namePathMapper.getOakName(jcrName);
if (REP_NODE_PATH.equals(oakName) && PropertyType.PATH == value.getType()) {
return new RestrictionImpl(PropertyStates.createProperty(oakName, value), true, namePathMapper);
} else {
return base.createRestriction(oakPath, jcrName, value);
}
}