@SuppressWarnings("unchecked")
Iterator<Element> el = root.getChildren().iterator();
while (el.hasNext()) {
Element element = el.next();
if (element.getQualifiedName().equalsIgnoreCase("error")) {
throw new ApiException(element.getAttributeValue("code"),
element.getAttributeValue("info"));
} else if (element.getQualifiedName().equalsIgnoreCase("rev")) {
try {
sa.setText(element.getText());