public void marshal(PageNavigation navigation, OutputStream outputStream) throws BindingException {
try {
StaxWriter<Element> writer = createWriter(Element.class, outputStream);
marshalNavigation(writer, navigation);
} catch (StaxNavException e) {
throw new BindingException(e);
} catch (XMLStreamException e) {
throw new BindingException(e);
}
}