private <E> List<E> selectList() throws SQLException { Executor localExecutor = executor; if (localExecutor.isClosed()) { localExecutor = newExecutor(); } try { return localExecutor.<E>query( mappedStatement, parameterObject, RowBounds.DEFAULT, Executor.NO_RESULT_HANDLER, cacheKey, boundSql); } finally { if (localExecutor != executor) { localExecutor.close(false); } } }