Versioned<String> storesXML = adminClient.metadataMgmtOps.getRemoteMetadata(nodeIdToGetStoreXMLFrom,
MetadataStore.STORES_KEY);
List<StoreDefinition> oldStoreDefs = mapper.readStoreList(new StringReader(storesXML.getValue()));
doMetaSet(adminClient, nodeIds, metaKey, mapper.writeStoreList(newStoreDefs));
if(!allNodes) {
System.err.println("WARNING: Metadata version update of stores goes to all servers, "
+ "although this set-metadata oprations only goes to node: ");
for(Integer nodeId: nodeIds) {
System.err.println(nodeId);