} else if (iiif != null) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Request is handled via the IIIFRequest shim");
}
final ImageRequest imageRequest = (ImageRequest) iiif;
final String size = imageRequest.getSize().toString();
final Region iiifRegion = imageRequest.getRegion();
final float rotation = imageRequest.getRotation();
String region;
// Djatoka expects a different order from what OpenSeadragon sends
// so we have to reconstruct rather than use Region's toString().
if (iiifRegion.isFullSize()) {