String shortKey = path.getShortKey(); setColorForColumn(shortKey, currentColumn, currentRow); setAlignmentForColumn(shortKey, currentColumn, currentRow);
  private  void fillEntityTable(      List visibleOrderedEntityPathes,       SetIterator entitySetIterator,      IWContext iwc)      {    // build table    Iterator iterator = visibleOrderedEntityPathes.iterator();        // set header row of the table        // set color for header    int i = 1;    if (colorForHeader != null) {      if (showMirroredView) {        setColumnColor(xAnchorPosition + 1, colorForHeader);      }      else {        setRowColor(yAnchorPosition + 2, colorForHeader);      }    }    while (iterator.hasNext())  {      EntityPath entityPath = (EntityPath) iterator.next();      EntityToPresentationObjectConverter converter = getEntityToPresentationConverter(entityPath);       PresentationObject presentation = converter.getHeaderPresentationObject(entityPath, this, iwc);      if (showMirroredView) {        add(presentation, xAnchorPosition + 1, yAnchorPosition + 1 + i);      }      else {        add(presentation, xAnchorPosition + i , yAnchorPosition + 2);      }       i++;        }        // fill table    boolean colorForOddRowsIsSet = (colorForOddRows != null);    boolean colorForEvenRowsIsSet = (colorForEvenRows != null);    int y = 3;    while (entitySetIterator.hasNextInSet()) {      Object genericEntity = entitySetIterator.next();      Iterator visibleOrderedEntityPathesIterator = visibleOrderedEntityPathes.iterator();      // set color of rows			setColorForRow(y, colorForOddRowsIsSet, colorForEvenRowsIsSet);      int x = 1;      // fill columns      currentIndexOfEntities = entitySetIterator.currentIndexRelativeToZero();      while (visibleOrderedEntityPathesIterator.hasNext())  {        if (showMirroredView) {          currentRow = yAnchorPosition + x + 1;          currentColumn = xAnchorPosition + y - 1;        }        else {          currentRow = yAnchorPosition + y;          currentColumn = xAnchorPosition + x;        }        EntityPath path = (EntityPath) visibleOrderedEntityPathesIterator.next();        EntityToPresentationObjectConverter converter = getEntityToPresentationConverter(path);         PresentationObject presentation = converter.getPresentationObject(genericEntity, path, this, iwc);        add(presentation, currentColumn, currentRow);        // next column        x++;      }      // nextRow      y++;    }    currentColumn = -1;    currentRow = -1;    currentIndexOfEntities = -1;  }