public static Map<String, String> encodeROMap(List<ROStoreVersionDirMap> metadataMap) {
        Map<String, String> storeToValue = Maps.newHashMap();
        for(ROStoreVersionDirMap currentStore: metadataMap) {
            storeToValue.put(currentStore.getStoreName(), currentStore.getStoreDir());
        }
        return storeToValue;
    }
public static Map < String , String > encodeROMap ( List < ROStoreVersionDirMap > metadataMap ) { Map < String , String > storeToValue = Maps . newHashMap ( ) ; for ( ROStoreVersionDirMap currentStore : metadataMap ) { storeToValue . put ( currentStore . getStoreName ( ) , currentStore . getStoreDir ( ) ) ; } return storeToValue ; }
/*
End encode RebalanceTaskInfo methods