doc = BasicFactories.observableDocumentProvider().create("blort", Attributes.EMPTY_MAP);
for (Boolean b : state) {
addEntry(b);
}
doc.with(new Action() {
@Override
public <N, E extends N, T extends N> void exec(ObservableMutableDocument<N, E, T> doc) {
target = DocumentBasedBoolean.create(DefaultDocumentEventRouter.create(doc),
doc.getDocumentElement(), ENTRY_TAG, VALUE_ATTR);
}