super(adapters);
}
@Override
public KeyValue adapt(KeyValueContext context) {
KeyContext keyContext = getChild(context, KeyContext.class);
ValueContext valueContext = getChild(context, ValueContext.class);
if (keyContext != null && valueContext != null) {
KeyValue keyValue = createData(context);
keyValue.setKey(getAdapter(KeyAdapter.class).adapt(keyContext));
keyValue.setValue(getAdapter(ValueAdapter.class).adapt(valueContext));