} else if (showOccupation instanceof InfoOccupation) {
InfoOccupation infoGenericEvent = (InfoOccupation) showOccupation;
strBuffer.append("<span title=\"").append(infoGenericEvent.getDescription()).append("\">");
final User userView = Authenticate.getUser();
if (infoGenericEvent.getOccupation().isActive() && userView != null
&& userView.getPerson().hasRole(RoleType.RESOURCE_ALLOCATION_MANAGER)) {
strBuffer.append("<a href=\"");
strBuffer.append(context).append("/resourceAllocationManager/");
strBuffer.append("roomsPunctualScheduling.do?method=prepareView&genericEventID=")
.append(infoGenericEvent.getExternalId()).append("\">");
strBuffer.append(infoGenericEvent.getTitle());