try {
environmentAttributes.set(Constants.HTTP_REQUEST.CLIENT_IP_ADDRESS.uri, "127.0.0.1");
} catch (Exception e) {
logger.warn("Could not set client IP for checksum context!");
}
ReadOnlyContext context;
try {
context = ReadOnlyContext.getContext(null, null, "fcrepo-checksum", false);
} catch (Exception e) {
throw new StreamIOException(e.getMessage(),e);
}
context.setEnvironmentValues(environmentAttributes);
return getContentStream(context);
}