ListPreference listPreference = user.getListPreference("CustomView");
ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPreference, request, ValueListConstants.CUSTOM_VIEW_LIST_TYPE, ValueListConstants.customViewListViewMap, true);
listParameters.setFilter("SELECT moduleid AS moduleid FROM module WHERE name='" + moduleName + "'");
// Get the list from the database.
ValueListHome valueListHome = (ValueListHome) CVUtility.getHomeObject("com.centraview.valuelist.ValueListHome","ValueList");
ValueList valueList = null;
try {
valueList = valueListHome.create();
} catch (CreateException e) {
System.out.println("[execute] Exception thrown."+ e);
throw new ServletException(e);
}
valueList.setDataSource(dataSource);