public void writeContent(OutputStream os) throws IOException {
Iterator it = resourceSet.iterator();
while (it.hasNext()) {
Object object = it.next();
if (object instanceof Streamable) {
Streamable streamableObject = (Streamable)object;
streamableObject.writeToStream(os);
}
}
}