Solved
Change this code to not log user-controlled data.
On logs as mentioned below, SonarQube throws an issue stating 'Change this code to not log user-controlled data.'
LOGGER.error("Unable to adapt resource at path {} to a Page object",
rootPagePath);
rootPagePath);
Why is this an issue?