IMemento definitionM = appendNewChild(projectM, ASPECT_DEFINITION_ELEMENT);
if (entry.getKey() instanceof IAdaptable) {
IPersistableElement pers = (IPersistableElement) ((IAdaptable) entry.getKey())
.getAdapter(IPersistableElement.class);
if (pers != null) {
pers.saveState(definitionM);
definitionM.putString(FACTORY_ID, pers.getFactoryId());
}
for (IAopReference ref : entry.getValue()) {
if (ref instanceof IAdaptable) {
IPersistableElement pers2 = (IPersistableElement) ((IAdaptable) ref)