if (model != null) {
this.extractAttributesToEdit(model.getContentShape(), content);
}
List<AttributeInterface> attributes = content.getAttributeList();
for (int i = 0; i < attributes.size(); i++) {
AttributeInterface attribute = attributes.get(i);
//jpfrontshortcut_${typeCodeKey}_${attributeNameI18nKey}
String attributeLabelKey = "jpfrontshortcut_" + content.getTypeCode() + "_" + attribute.getName();
if (null == this.getI18nManager().getLabelGroup(attributeLabelKey)) {
this.addLabelGroups(attributeLabelKey, attribute.getName());
}
attribute.setDisablingCodes(this.createNewCodes(attribute.getDisablingCodes()));
if (null != this.getAttributeName() && !this.getAttributeName().contains(attribute.getName())) {
attribute.disable(JpFrontShortcutSystemConstants.WIDGET_DISABLING_CODE);
}
}
Lang currentLang = super.getCurrentLang();
this.getRequest().getSession()
.setAttribute(JpFrontShortcutSystemConstants.CONTENT_LANG_SESSION_PARAM, currentLang);