*
* @throws Exception If any exception occurred
*/
public static ListIFace getList(ServiceIFace service, SourceBean request, SourceBean response) throws Exception {
PaginatorIFace paginator = new GenericPaginator();
InitializerIFace serviceInitializer = (InitializerIFace) service;
RequestContextIFace serviceRequestContext = (RequestContextIFace) service;
int pagedRows = 10;
SourceBean rowsSourceBean = null;
SourceBean config = serviceInitializer.getConfig();
if (config != null) {
pagedRows = Integer.parseInt((String) serviceInitializer.getConfig().getAttribute("ROWS"));
paginator.setPageSize(pagedRows);
String pool = (String) serviceInitializer.getConfig().getAttribute("POOL");
SourceBean statement = (SourceBean) serviceInitializer.getConfig().getAttribute("QUERIES.SELECT_QUERY");
rowsSourceBean =
(SourceBean) QueryExecutor.executeQuery(
serviceRequestContext.getRequestContainer(),
serviceRequestContext.getResponseContainer(),
pool,