code: public static UICategory create(String... categories)
     {
        if (categories == null || categories.length == 0)
        {
           return new UICategoryImpl(DEFAULT, null);
        }
        else if (categories.length == 1)
        {
           return new UICategoryImpl(categories[0], null);
        }
        else
        {
           return new UICategoryImpl(categories[0], Categories.create(Arrays.copyOfRange(categories, 1,
                    categories.length)));
        }
     }
docs: Produce a hierarchical {@link UICategory} instance from the given sub-category names.