How is an attribute set creation implemented in the backend?

See also: