// as possible first.
int[] order = getSortOrder(dstCoords);
dstCoords = sortArray(dstCoords, order);
srcCoords = sortArray(srcCoords, order);
GeoReferencingProcess process = new GeoReferencingProcess(this.crsTarget, srcCoords, dstCoords, this.imagePath,
this.outputFileName, this.originalMap);
process.run();
// FIXME test it, i want to see the newly added layer rendered in uDig.
for (ILayer layer : originalMap.getMapLayers()) {
layer.refresh(null);