public <T> T execute(XccCallback<T> callback) { Session session = contentSource.newSession(); try { return callback.execute(session); } catch (RequestException re) { throw new RuntimeException(re); } finally { session.close(); } }
public <T> T execute(XccCallback<T> callback) { Session session = contentSource.newSession(); try { return callback.execute(session); } catch (RequestException re) { throw new RuntimeException(re); } finally { session.close(); } }