@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
public BloodPressureConverter get() {
PersistenceService persistenceSvc = PersistenceService.getInstance();
try {
persistenceSvc.beginTx();
return new BloodPressureConverter(getEntity(), uriInfo.getAbsolutePath(), Api.DEFAULT_EXPAND_LEVEL);
} finally {
PersistenceService.getInstance().close();
}
}