class RowStructureLoader {

    public static RowStructure loadRowStructure(final Parse headerRow) {
        Parse headerCell = headerRow.parts;
        int colNum = headerRow.parts.size();
        String[] columnNames = new String[colNum];
        boolean[] keyProperties = new boolean[colNum];

        for (int i = 0; i < colNum; i++) {
            loadColumnStructure(headerCell, i, columnNames, keyProperties);
            headerCell = headerCell.more;
        }

        return new RowStructure(columnNames, keyProperties);
    }

}