/** * Using the given {@link UICategory} as a parent, produce a hierarchical {@link UICategory} instance from the given * sub-category names. */ public static UICategory create(UICategory category, String... categories) { Assert.notNull(category, "Parent UICategory must not be null."); Assert.notNull(categories, "Sub categories must not be null."); List<String> args = new ArrayList<>(); args.add(category.getName()); args.addAll(Arrays.asList(categories)); return create(args.toArray(new String[args.size()])); }
@Override public Metadata getMetadata(UIContext context) { return Metadata.from(super.getMetadata(context), getClass()).name("JPA: Setup") .description("Setup JPA in your project") .category(Categories.create(super.getMetadata(context).getCategory().getName(), "JPA")); }