record.setAttribute(FIELD_NAMELINK, LinkManager.getBundleGroupLink(from.getId()));
record.setAttribute(FIELD_DESCRIPTION, (from.getDescription() == null) ? "" : from.getDescription());
if (cascade) {
Set<Bundle> bundles = from.getBundles();
ListGridRecord[] bundleRecords = new BundlesDataSource().buildRecords(bundles, false);
record.setAttribute(FIELD_BUNDLES, bundleRecords);
}
return record;