@Override public void populateItem( final Item<ICellPopulator<T>> cellItem, final String componentId, final IModel<T> rowModel) { Component panel; try { JobTO jobTO = restClient.getJob(rowModel.getObject().getKey()); panel = new JobActionPanel(componentId, jobTO, false, ProvisioningTaskDirectoryPanel.this, pageRef); MetaDataRoleAuthorizationStrategy.authorize(panel, WebPage.ENABLE, String.format("%s,%s", StandardEntitlement.TASK_EXECUTE, StandardEntitlement.TASK_UPDATE)); } catch (Exception e) { LOG.error("Could not get job for task {}", rowModel.getObject().getKey(), e); panel = new Label(componentId, Model.of()); } cellItem.add(panel); }