// add page tracking functionality
PageTrackerFactory ptFactory = pageContext.
getVolantisBean().getPageTrackerFactory();
if (ptFactory != null) {
PageAttributes canvasAttributes = (PageAttributes) papiAttributes;
CanvasDetails canvasDetails = ptFactory.
createCanvasDetails(canvasAttributes.getPageTitle(),
getCanvasType(),
canvasAttributes.getTheme(),
canvasAttributes.getLayoutName());
PageDetails pageDetails = ptFactory.createPageDetails(
canvasDetails,
pageContext.getDeviceName());
try {
ptFactory.createPageDetailsManager().addPageDetails(