if (src.isAdapted(Redirectable.class)) {
Redirectable redirectAble = src.adapt(Redirectable.class);
redirects = loadRedirects(src, redirectAble.getRedirects());
}
Described described = src.adapt(Described.class);
//
return new PortalData(src.getObjectId(), src.getName(), type, attrs.getValue(MappedAttributes.LOCALE),
described.getName(), described.getDescription(), accessPermissions, editPermission,
Collections.unmodifiableMap(properties), attrs.getValue(MappedAttributes.SKIN), layout, redirects);
}