/** * Write current state into properties. */ public IFuture<Properties> getProperties() { Properties props = new Properties(); for(Tuple2<IResourceIdentifier, IResourceIdentifier> link: addedlinks) { Properties plink = new Properties(); Properties a = ResourceIdentifier.ridToProperties(link.getFirstEntity(), component.getComponentIdentifier().getRoot()); Properties b = ResourceIdentifier.ridToProperties(link.getSecondEntity(), component.getComponentIdentifier().getRoot()); plink.addSubproperties("a", a); plink.addSubproperties("b", b); props.addSubproperties("link", plink); } return new Future<Properties>(props); }