\r
import java.lang.annotation.Annotation;\r
import java.lang.reflect.Field;\r
-import java.util.Collection;\r
import java.util.Collections;\r
\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.exception.ValidationException;\r
import org.simantics.objmap.IMappingRule;\r
import org.simantics.objmap.annotations.OptionalRelatedElements;\r
-import org.simantics.objmap.annotations.RelatedElements;\r
import org.simantics.objmap.rules.MappedElementsRule;\r
import org.simantics.objmap.rules.domain.RelatedObjectsAccessor;\r
import org.simantics.objmap.rules.factory.IFieldRuleFactory;\r
-import org.simantics.objmap.rules.range.FieldAccessor;\r
import org.simantics.objmap.rules.range.FieldAccessorWithDefault;\r
\r
public class OptionalRelatedElementsRuleFactory implements IFieldRuleFactory {\r