private String constructRemoveISCSIQuery(String systemId,String hsdId,List<String> scsiNameList,String model){
  Map<String,Object> attributeMap=new HashMap<String,Object>();
  StorageArray array=new StorageArray(systemId);
  Delete deleteOp=new Delete(HDSConstants.ISCSI_NAME_FOR_HSD_TARGET);
  attributeMap.put(HDSConstants.STORAGEARRAY,array);
  attributeMap.put(HDSConstants.DELETE,deleteOp);
  attributeMap.put(HDSConstants.MODEL,model);
  HostStorageDomain hsd=new HostStorageDomain(hsdId);
  attributeMap.put(HDSConstants.HOST_STORAGE_DOMAIN,hsd);
  List<ISCSIName> iSCSIObjList=new ArrayList<ISCSIName>();
  if (null != scsiNameList && !scsiNameList.isEmpty()) {
    for (    String iScsiName : scsiNameList) {
      ISCSIName iSCSIName=new ISCSIName(iScsiName,null);
      iSCSIObjList.add(iSCSIName);
    }
  }
  attributeMap.put(HDSConstants.ISCSINAME_LIST,iSCSIObjList);
  String removeISCSINamesToHSDQuery=InputXMLGenerationClient.getInputXMLString(HDSConstants.REMOVE_ISCSI_NAME_FROM_HSD_OP,attributeMap,HDSConstants.HITACHI_INPUT_XML_CONTEXT_FILE,HDSConstants.HITACHI_SMOOKS_CONFIG_FILE);
  return removeISCSINamesToHSDQuery;
}

private String constructRemoveISCSIQuery ( String systemId , String hsdId , List < String > scsiNameList , String model ) { Map < String , Object > attributeMap = new HashMap < String , Object > ( ) ; StorageArray array = new StorageArray ( systemId ) ; Delete deleteOp = new Delete ( HDSConstants . ISCSI_NAME_FOR_HSD_TARGET ) ; attributeMap . put ( HDSConstants . STORAGEARRAY , array ) ; attributeMap . put ( HDSConstants . DELETE , deleteOp ) ; attributeMap . put ( HDSConstants . MODEL , model ) ; HostStorageDomain hsd = new HostStorageDomain ( hsdId ) ; attributeMap . put ( HDSConstants . HOST_STORAGE_DOMAIN , hsd ) ; List < ISCSIName > iSCSIObjList = new ArrayList < ISCSIName > ( ) ; if ( null != scsiNameList && ! scsiNameList . isEmpty ( ) ) { for ( String iScsiName : scsiNameList ) { ISCSIName iSCSIName = new ISCSIName ( iScsiName , null ) ; iSCSIObjList . add ( iSCSIName ) ; } } attributeMap . put ( HDSConstants . ISCSINAME_LIST , iSCSIObjList ) ; String removeISCSINamesToHSDQuery = InputXMLGenerationClient . getInputXMLString ( HDSConstants . REMOVE_ISCSI_NAME_FROM_HSD_OP , attributeMap , HDSConstants . HITACHI_INPUT_XML_CONTEXT_FILE , HDSConstants . HITACHI_SMOOKS_CONFIG_FILE ) ; return removeISCSINamesToHSDQuery ; }
construct the iscsinames query by adding multiple wwns . this query should be used to add the iscsi initiators to the iscsi hsd .
