public static Categories buildSeverityCategoryDocument() {
Categories cats = new Categories();
cats.setScheme("urn:com:hp:qadefects:categories:severity");
cats.setFixed(true);
AtomCategory severityCritical = new AtomCategory();
severityCritical.setLabel("critical");
severityCritical.setScheme("urn:com:hp:qadefects:categories:severity");
severityCritical.setTerm("1-critical");
cats.addCategory(severityCritical);
AtomCategory severityHigh = new AtomCategory();
severityHigh.setLabel("high");
severityHigh.setScheme("urn:com:hp:qadefects:categories:severity");
severityHigh.setTerm("2-high");
cats.addCategory(severityHigh);
AtomCategory severityMidium = new AtomCategory();
severityMidium.setLabel("medium");
severityMidium.setScheme("urn:com:hp:qadefects:categories:severity");
severityMidium.setTerm("3-medium");
cats.addCategory(severityMidium);
AtomCategory severityMinor = new AtomCategory();
severityMinor.setLabel("minor");
severityMinor.setScheme("urn:com:hp:qadefects:categories:severity");
severityMinor.setTerm("4-minor");
cats.addCategory(severityMinor);
return cats;
}