/* */ {
/* 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