URI olefHttpUri = StaticURI.toStaticFileUri(olefUri);
return new Olef(olefHttpUri.toURL());
}
public static void save(BookInfo bookInfo) {
Derivative derivative = new Derivative();
derivative.setPid(FedoraURI.getPidFromGuid(bookInfo.getGuid()));
derivative.setDsId(DSID);
JSONObject json = JSONObject.fromObject(bookInfo);
InputStream in = IOUtils.toInputStream(json.toString());
derivative.setInputStream(in);
storageService.updateDerivative(derivative);
}