protected InternalDevice resolveDevice(
DeviceReader deviceReader, MarinerRequestContext requestContext)
throws RepositoryException {
InternalRequest internalRequest =
((MarinerInternalRequestContext) requestContext).getRequest();
String deviceName = internalRequest.getDeviceName();
if (logger.isDebugEnabled()) {
logger.debug("Mariner-DeviceName=" + deviceName);
}
InternalDevice device = deviceReader.getDevice(deviceName);