protected InputStream getContentInputStream(OperationContext operationContext, ModelNode operation) throws OperationFailedException {
urlValidator.validate(operation);
String urlSpec = operation.get(URL).asString();
try {
URL url = new URL(urlSpec);
return url.openStream();
} catch (MalformedURLException e) {
throw new OperationFailedException(new ModelNode().set(MESSAGES.invalidUrl(urlSpec, e.toString())));
} catch (IOException e) {
throw new OperationFailedException(new ModelNode().set(MESSAGES.errorObtainingUrlStream(urlSpec, e.toString())));
}