code: public static PortletCategoryBean create(
              String id,
              String name,
              String description,
              Set<PortletCategoryBean> subcategories,
              Set<PortletDefinitionBean> portlets) {
          return new PortletCategoryBean(id, name, description, subcategories, portlets);
      }
docs: Creates a new bean based on the provided inputs.