int mapLun(boolean force,String initGroup,int lunId){
  if (lunId == -1) {
    log.info("LUN Id will be auto-assigned.");
  }
  NaElement elem=new NaElement("lun-map");
  elem.addNewChild("force",Boolean.toString(force));
  elem.addNewChild("initiator-group",initGroup);
  if (lunId != -1) {
    elem.addNewChild("lun-id",Integer.toString(lunId));
  }
  elem.addNewChild("path",path);
  try {
    NaElement result=server.invokeElem(elem);
    return result.getChildIntValue("lun-id-assigned",-1);
  }
 catch (  Exception e) {
    String msg="Failed to map LUN path=" + path + " to group="+ initGroup;
    log.error(msg,e);
    throw new NetAppException(msg,e);
  }
}

int mapLun ( boolean force , String initGroup , int lunId ) { if ( lunId == - 1 ) { log . info ( "LUN Id will be auto-assigned." ) ; } NaElement elem = new NaElement ( "lun-map" ) ; elem . addNewChild ( "force" , Boolean . toString ( force ) ) ; elem . addNewChild ( "initiator-group" , initGroup ) ; if ( lunId != - 1 ) { elem . addNewChild ( "lun-id" , Integer . toString ( lunId ) ) ; } elem . addNewChild ( "path" , path ) ; try { NaElement result = server . invokeElem ( elem ) ; return result . getChildIntValue ( "lun-id-assigned" , - 1 ) ; } catch ( Exception e ) { String msg = "Failed to map LUN path=" + path + " to group=" + initGroup ; log . error ( msg , e ) ; throw new NetAppException ( msg , e ) ; } }
map the lun to initiators in the initiator group
