Code review changes : removing class cast, adding logs on the headlibs.jsp, consolidating @page tag, changed null check