113114115116117118119120121122123124125
@Override public SecuredResource asResource() { if (canRead()) { throw new ResourceRequiredException(asNode()); } else { throw new ResourceRequiredException( Node.createLiteral("Can not read")); } }