if (getCoverage instanceof GetCoverageType) {
WebCoverageService111 wcs = (WebCoverageService111) context
.getBean("wcs111ServiceTarget");
return wcs.getCoverage((net.opengis.wcs11.GetCoverageType) getCoverage)[0];
} else if (getCoverage instanceof net.opengis.wcs10.GetCoverageType) {
WebCoverageService100 wcs = (WebCoverageService100) context
.getBean("wcs100ServiceTarget");
return wcs.getCoverage((net.opengis.wcs10.GetCoverageType) getCoverage)[0];
} else {
throw new WPSException("Unrecognized request type " + getCoverage);
}
}