writer.writeStartDocument("UTF-8", "1.0");
writer.writeStartElement("workspaceFile");
writeHeader(writer);
WorkspaceInformation info = workspace.getLookup().lookup(WorkspaceInformation.class);
writer.writeStartElement("workspace");
writer.writeAttribute("name", info.getName());
writer.writeAttribute("id", String.valueOf(workspace.getId()));
if (info.isOpen()) {
writer.writeAttribute("status", "open");
} else if (info.isClosed()) {
writer.writeAttribute("status", "closed");
} else {
writer.writeAttribute("status", "invalid");
}