I am working on a servlet that will get a page path as a query parameter. Page path will be sth like /content/a/b/c/08/03
I need to use Generic List to create a map between the ID and its value as we don't want to be dependent on builds to modify the list items.
The code snippet is
Page lobGenericList = pageManager.getPage("/etc/acs-commons/lists/lob");
GenericList lobList = lobGenericList.adaptTo(GenericList.class);
assert lobList != null;
List<GenericListItem> lobListItems = lobList.getItems();
String lobValue = lobListItems.lookupTitle(lobId);
logger.info("LOB value mapped to list is {}", lobValue);
In the above code, I'm trying to get the lobValue by using GenericListItem class. But I'm getting error "Cannot be resolved to a type".
ACS Commons version -> 5.7.0
What can be the issue?