int individualId = user.getIndividualID();
// Handle Paging, etc
ListPreference listPreference = user.getListPreference("Template");
ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPreference, request, ValueListConstants.TEMPLATE_LIST_TYPE, ValueListConstants.templateViewMap, true);
// 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) {
logger.error("[execute] Exception thrown.", e);
throw new ServletException(e);
}
valueList.setDataSource(dataSource);