private URI findHostURI(List<VNXeBase> initiators,VNXeApiClient apiClient,DbClient dbClient){
  if (initiators != null && !initiators.isEmpty()) {
    for (    VNXeBase init : initiators) {
      VNXeHostInitiator vnxeInitiator=apiClient.getHostInitiator(init.getId());
      String portwwn=vnxeInitiator.getPortWWN();
      if (portwwn == null || portwwn.isEmpty()) {
        continue;
      }
      Initiator initiator=NetworkUtil.getInitiator(portwwn,dbClient);
      if (initiator != null && !initiator.getInactive()) {
        URI hostURI=initiator.getHost();
        if (!NullColumnValueGetter.isNullURI(hostURI)) {
          return hostURI;
        }
      }
    }
  }
  return null;
}

private URI findHostURI ( List < VNXeBase > initiators , VNXeApiClient apiClient , DbClient dbClient ) { if ( initiators != null && ! initiators . isEmpty ( ) ) { for ( VNXeBase init : initiators ) { VNXeHostInitiator vnxeInitiator = apiClient . getHostInitiator ( init . getId ( ) ) ; String portwwn = vnxeInitiator . getPortWWN ( ) ; if ( portwwn == null || portwwn . isEmpty ( ) ) { continue ; } Initiator initiator = NetworkUtil . getInitiator ( portwwn , dbClient ) ; if ( initiator != null && ! initiator . getInactive ( ) ) { URI hostURI = initiator . getHost ( ) ; if ( ! NullColumnValueGetter . isNullURI ( hostURI ) ) { return hostURI ; } } } } return null ; }
find host uri from host initiators on array
