It is needed because of the new XML configuration. Each cache container defines the default cache for that container, inline with the AS configuration. The default defaultCacheName is indeed the public constant that you are referring to, but this can be configured via XML now.