@Override
public boolean convertToTargetLayer(ILayer targetLayer) {
List<RowPositionCoordinate> convertedFromRowPositionCoordinates = new ArrayList<RowPositionCoordinate>();
for (RowPositionCoordinate fromRowPositionCoordinate : fromRowPositionCoordinates) {
RowPositionCoordinate convertedFromRowPositionCoordinate = LayerCommandUtil
.convertRowPositionToTargetContext(
fromRowPositionCoordinate, targetLayer);
if (convertedFromRowPositionCoordinate != null) {
convertedFromRowPositionCoordinates
.add(convertedFromRowPositionCoordinate);
}
}
RowPositionCoordinate targetToRowPositionCoordinate = LayerCommandUtil
.convertRowPositionToTargetContext(toRowPositionCoordinate,
targetLayer);
if (convertedFromRowPositionCoordinates.size() > 0
&& targetToRowPositionCoordinate != null) {