return okResponse(msg, type, Status.SUCCESS_OK);
}
protected Representation okResponse(String msg, MediaType type, Status status) {
TreeWriter tree = new TreeWriter(getGlobalRuntime());
tree.startDocument(URI.create("http://example.com/"));
tree.addStartElement(pr_response);
tree.startContent();
tree.addStartElement(pr_code);
tree.startContent();
tree.addText("" + status.getCode());