private void updateAltDeviceid(NetworkFCZoneInfo fabricInfo,String fabricId,String fabricWWN,String key,Map<String,NetworkLite> fabricId2Network){
  if (fabricInfo != null && fabricInfo.getAltNetworkDeviceId() == null) {
    if (fabricId2Network.get(key) == null) {
      NetworkLite network=NetworkUtil.getNetworkLiteByFabricId(fabricId,fabricWWN,_dbClient);
      if (network != null) {
        fabricId2Network.put(key,network);
        URI id=fabricInfo.getNetworkDeviceId();
        for (        String strUri : network.getNetworkSystems()) {
          if (!strUri.equals(id.toString())) {
            id=URI.create(strUri);
            break;
          }
        }
        fabricInfo.setAltNetworkDeviceId(id);
      }
    }
  }
}

private void updateAltDeviceid ( NetworkFCZoneInfo fabricInfo , String fabricId , String fabricWWN , String key , Map < String , NetworkLite > fabricId2Network ) { if ( fabricInfo != null && fabricInfo . getAltNetworkDeviceId ( ) == null ) { if ( fabricId2Network . get ( key ) == null ) { NetworkLite network = NetworkUtil . getNetworkLiteByFabricId ( fabricId , fabricWWN , _dbClient ) ; if ( network != null ) { fabricId2Network . put ( key , network ) ; URI id = fabricInfo . getNetworkDeviceId ( ) ; for ( String strUri : network . getNetworkSystems ( ) ) { if ( ! strUri . equals ( id . toString ( ) ) ) { id = URI . create ( strUri ) ; break ; } } fabricInfo . setAltNetworkDeviceId ( id ) ; } } } }
ensures every fabricinfo has its altnetworkdevice that is not null when the calling code did not already supply a value for this field .
