public Iterable<? extends PropertyState> getProperties() {
ReadStatus rs = getReadStatus();
if (rs.includes(ReadStatus.ALLOW_PROPERTIES)) {</BUG>
return state.getProperties();
<BUG>} else if (rs.appliesToThis()) {
return Iterables.filter(state.getProperties(), isPropertyReadable);
} else {</BUG>
return Collections.emptySet();
}
}

public Iterable<? extends PropertyState> getProperties() {
if (context.canReadAllProperties()) {
return state.getProperties();
} else if (context.canReadThisNode()) {
return filter(state.getProperties(), isPropertyReadable);
} else {
return Collections.emptySet();
}
}
