package pt.ist.renderers.extensions.factories; import java.util.List; import pt.ist.fenixframework.services.ServiceManager; import pt.ist.fenixframework.services.ServicePredicate; import pt.ist.renderers.model.MetaObject; import pt.ist.renderers.model.MetaObjectCollection; public class DomainMetaObjectCollection extends MetaObjectCollection { @Override public void commit() { final List metaObjects = getAllMetaObjects(); final ServicePredicate servicePredicate = new ServicePredicate() { @Override public void execute() { for (MetaObject object : metaObjects) { object.commit(); } } }; ServiceManager.execute(servicePredicate); } }