Document document = builder.build(in);
Element rootNode = document.getRootElement(); // images
List<Element> imageList = rootNode.getChildren("image");
for (Element image : imageList) {
String name = image.getAttributeValue("name");
ECrop crop;
int maxCrop;
if (image.getAttribute("crop")!=null){
crop = ECrop.valueOf(image.getAttributeValue("crop"));
maxCrop = Integer.parseInt(image.getAttributeValue("maxCrop"));
} else {