@Override public void setModelAttributes(Map<String, Object> attributes) { Long structureLinkId = (Long) attributes.get("structureLinkId"); if (structureLinkId != null) { setStructureLinkId(structureLinkId); } Long classNameId = (Long) attributes.get("classNameId"); if (classNameId != null) { setClassNameId(classNameId); } Long classPK = (Long) attributes.get("classPK"); if (classPK != null) { setClassPK(classPK); } Long structureId = (Long) attributes.get("structureId"); if (structureId != null) { setStructureId(structureId); } }