}
private void writeWorkspaceBytes(Workspace workspace, DataOutputStream outputStream, ZipOutputStream zipOut) throws Exception {
for (Map.Entry<String, WorkspaceBytesPersistenceProvider> entry : PersistenceProviderUtils.getBytesPersistenceProviders().entrySet()) {
String name = entry.getKey();
WorkspaceBytesPersistenceProvider provider = entry.getValue();
//Write Project file
zipOut.putNextEntry(new ZipEntry("Workspace_" + workspace.getId() + "_" + name + "_bytes"));
provider.writeBytes(outputStream, workspace);
//Close Project file
zipOut.closeEntry();
}
}