if (EntityView.VIEW_LIST.equals(viewKey)
&& entityData != null
&& entityData.getEntityId() != null) {
// SPECIAL CASE: if this is a list then the view refers to the space only so we have to copy it
view = view.copy();
view.setEntityReference( new EntityReference(prefix, entityData.getEntityId()) );
}
// now create the output data
StringBuilder sb = new StringBuilder(300);
String formName = prefix + "-" + (entityData != null ? entityData.getEntityRef().getId() : "xxx");
sb.append(" <div style='font-weight:bold;'>");