def _createNonconflictingColumnName(table, baseColumnName):
    """
    Creates a column name that is not present in the table.

    Args:
        table          : table to check column name against.
        baseColumnName : base name to create a column from.

    Returns:
        column name that is not present in the table.
    """

    if not table.hasColumns(baseColumnName):
        return baseColumnName

    else:
        i = 0
        while table.hasColumns(baseColumnName):
            baseColumnName = baseColumnName + str(i)

            if not table.hasColumns(baseColumnName):
                return baseColumnName
            i += 1