if (component instanceof UIContainer) {
UIContainer srcContainer = (UIContainer) component;
Attributes attrs = srcContainer.getAttributes();
String type = attrs.getValue(MappedAttributes.TYPE);
if ("dashboard".equals(type)) {
Site owner = src.getPage().getSite();
TransientApplicationState<Portlet> state = new TransientApplicationState<Portlet>(
"dashboard/DashboardPortlet", null, getOwnerType(owner.getObjectType()), owner.getName());
//
boolean showInfoBar = attrs.getValue(MappedAttributes.SHOW_INFO_BAR, false);
boolean showMode = attrs.getValue(MappedAttributes.SHOW_MODE, false);
boolean showWindowState = attrs.getValue(MappedAttributes.SHOW_WINDOW_STATE, false);