/* 172 */ if (context == null) {
/* 173 */ throw new IllegalArgumentException("Null context");
/* */ }
/* */
/* 177 */ Attachments attachments = context.getPredeterminedManagedObjects();
/* */ MutableAttachments mutable;
/* 180 */ if (attachments == null)
/* */ {
/* 182 */ MutableAttachments mutable = AttachmentsFactory.createMutableAttachments();
/* 183 */ context.setPredeterminedManagedObjects(mutable);
/* */ }
/* 186 */ else if (!(attachments instanceof MutableAttachments))
/* */ {
/* 188 */ MutableAttachments mutable = AttachmentsFactory.createMutableAttachments();
/* 189 */ Map map = attachments.getAttachments();
/* 190 */ if (map != null)
/* 191 */ mutable.setAttachments(map);
/* 192 */ context.setPredeterminedManagedObjects(mutable);
/* */ }
/* */ else
/* */ {
/* 196 */ mutable = (MutableAttachments)attachments;
/* */ }
/* */
/* 199 */ StructureMetaData structure = (StructureMetaData)mutable.getAttachment(StructureMetaData.class);
/* */
/* 201 */ if (structure == null)
/* */ {
/* 203 */ structure = StructureMetaDataFactory.createStructureMetaData();
/* 204 */ mutable.addAttachment(StructureMetaData.class, structure);
/* */ }
/* 206 */ return structure;
/* */ }