public static ITable GetTable(
            DbModificationCommandTree commandTree,
            DbContainer container)
        {
            DbScanExpression source = commandTree.Target.Expression as DbScanExpression;

            if (source == null)
            {
                throw new NotSupportedException(
                          "The type of the Target property is not DbScanExpression");
            }

            return((ITable)container.GetTable(source.Target.GetFullTableName()));
        }