private boolean isSharedLun(VNXeLun lun){
  List<BlockHostAccess> accesses=lun.getHostAccess();
  int hostCount=0;
  if (accesses != null && !accesses.isEmpty()) {
    for (    BlockHostAccess access : accesses) {
      if (access != null) {
        VNXeBase hostId=access.getHost();
        if (hostId != null) {
          hostCount++;
          if (hostCount > 1) {
            return true;
          }
        }
      }
    }
  }
  return false;
}

private boolean isSharedLun ( VNXeLun lun ) { List < BlockHostAccess > accesses = lun . getHostAccess ( ) ; int hostCount = 0 ; if ( accesses != null && ! accesses . isEmpty ( ) ) { for ( BlockHostAccess access : accesses ) { if ( access != null ) { VNXeBase hostId = access . getHost ( ) ; if ( hostId != null ) { hostCount ++ ; if ( hostCount > 1 ) { return true ; } } } } } return false ; }
check if a lun is shared
