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(String.format("%s is not a valid URL -- %s", urlSpec, e.toString())));
} catch (IOException e) {
throw new OperationFailedException(new ModelNode().set(String.format("Error obtaining input stream from URL %s -- %s", urlSpec, e.toString())));
}