exception = new WriteException("Unknown object node type: " + resource.getClass().getName());
}
private void writePredicate(PredicateNode predicate) throws WriteException, XMLStreamException {
if (!(predicate instanceof URIReference)) {
throw new WriteException("Unknown predicate node type: " + predicate.getClass().getName());
}
String resourceName = names.replaceNamespace((URIReference) predicate);
xmlStreamWriter.writeStartElement(resourceName);
}