int tlx = Integer.valueOf(attr.getNamedItem("top_left_x").getNodeValue());
int tly = Integer.valueOf(attr.getNamedItem("top_left_y").getNodeValue());
int brx = Integer.valueOf(attr.getNamedItem("bottom_right_x").getNodeValue());
int bry = Integer.valueOf(attr.getNamedItem("bottom_right_y").getNodeValue());
Region r = new Region();
r.setTlx(tlx);
r.setTly(tly);
r.setBrx(brx);
r.setBry(bry);
return r;
}