className = className == null ? "" : " class=\"" + className + "\"";
RequestContext context = request.getContext();
final ObjectAdapter object = context.getMappedObjectOrVariable(id, tableBlock.getElementName());
final ObjectAssociation field = object.getSpecification().getAssociation(fieldName);
if (field == null) {
throw new ScimpiException("No field " + fieldName + " in " + object.getSpecification().getFullIdentifier());
}
request.appendHtml("<td" + className + ">");
if (field.isVisible(IsisContext.getAuthenticationSession(), object, where).isAllowed()) {
final ObjectAdapter fieldReference = field.get(object);
final String source = fieldReference == null ? "" : context.mapObject(fieldReference, Scope.REQUEST);