protected void injectIntoVolumeInformationContainer(Map<String,StringSet> volumeInformation,String infoKey,String altKey,CIMInstance volumeInstance){
  Object value=getCIMPropertyValue(volumeInstance,infoKey);
  if (null == value) {
    value=getCIMPropertyValue(volumeInstance,altKey);
  }
  String charactersticName=SupportedVolumeInformation.getVolumeInformation(infoKey);
  if (null != value && null != charactersticName) {
    StringSet valueSet=new StringSet();
    if (value instanceof String) {
      valueSet.add(value.toString());
    }
 else     if (value instanceof String[]) {
      valueSet.addAll(Arrays.asList((String[])value));
    }
    volumeInformation.put(charactersticName,valueSet);
  }
}

protected void injectIntoVolumeInformationContainer ( Map < String , StringSet > volumeInformation , String infoKey , String altKey , CIMInstance volumeInstance ) { Object value = getCIMPropertyValue ( volumeInstance , infoKey ) ; if ( null == value ) { value = getCIMPropertyValue ( volumeInstance , altKey ) ; } String charactersticName = SupportedVolumeInformation . getVolumeInformation ( infoKey ) ; if ( null != value && null != charactersticName ) { StringSet valueSet = new StringSet ( ) ; if ( value instanceof String ) { valueSet . add ( value . toString ( ) ) ; } else if ( value instanceof String [ ] ) { valueSet . addAll ( Arrays . asList ( ( String [ ] ) value ) ) ; } volumeInformation . put ( charactersticName , valueSet ) ; } }
extract value from provider for given volume info key , and then get its name and use that to inject to map .
