final FileWriter writer = new FileWriter(DIMENSION_FILE);
final XmlObjectWriter xmlWriter = new XmlObjectWriter();
final AliasMap aliasMap = new AliasMap();
aliasMap.put(ArrayList.class, "images");
xmlWriter.setAliasMap(aliasMap);
final String xml = xmlWriter.writeToXml(dimensions, true);
writer.append(XmlHelper.XML_HEADER);
writer.append(xml);
IOUtils.closeQuietly(writer);
log.info("Creation of dimension file done: " + DIMENSION_FILE);
}