String idTP = folder.substring((indexOf+1), folder.length() - 1);
TP tp = applicationService.get(getTargetPropertyDefinition(),
Integer.parseInt(idTP));
if (tp.getRendering() instanceof AWidgetFileCris)
{
AWidgetFileCris widget = (AWidgetFileCris) tp.getRendering();
// Fire usage event.
if (widget.isUseInStatistics())
{
request.setAttribute("sectionid", tp.getId());
new DSpace().getEventService().fireEvent(
new UsageEvent(UsageEvent.Action.VIEW, request,
UIUtil.obtainContext(request),