}
return new AnyValue(processor, input, result, storeId, key, domain);
}
public void save(Value value, XMLStringWriter writer) {
AnyValue anyValue = (AnyValue)value;
if ( anyValue.getProcessorUri() == null ) {
writer.writeEmptyElement(XMLWriter.createEmptyTag(getElementName(), new String[] { STORE, KEY, DOMAIN }, new String[] { Store.stores[anyValue.getStoreId()], anyValue.getKey(), anyValue.getDomain() }));
} else {
if ( anyValue.getInput() == null ) {
writer.writeStartTag(XMLWriter.createStartTag(getElementName(), new String[] { PROCESSOR, RESULT, STORE, KEY, DOMAIN }, new String[] { anyValue.getProcessorUri().toString(), anyValue.getResult(), Store.stores[anyValue.getStoreId()], anyValue.getKey(), anyValue.getDomain() }));
} else {
writer.writeStartTag(XMLWriter.createStartTag(getElementName(), new String[] { PROCESSOR, RESULT }, new String[] { anyValue.getProcessorUri().toString(), anyValue.getResult() }));
ValueFactoryManager.getInstance().saveValue(anyValue.getInput(), writer);
writer.writeEndTag(XMLWriter.createEndTag(getElementName()));
}
}
}