package com.l7tech.server.service;

import com.l7tech.uddi.UDDIClient;
import com.l7tech.uddi.UDDIException;
import com.l7tech.uddi.WsdlPortInfo;
import com.l7tech.util.ResolvingComparator;
import com.l7tech.util.Functions.UnaryThrows;
import java.util.Arrays;

class i implements UnaryThrows<WsdlPortInfo[], UDDIClient, UDDIException> {
   final h this$1;

   i(h var1) {
      this.this$1 = var1;
   }

   public WsdlPortInfo[] call(UDDIClient var1) throws UDDIException {
      WsdlPortInfo[] var2 = this.this$1
         .this$0
         .c
         .getWsdlByServiceName(var1, this.this$1.val$namePattern, this.this$1.val$caseSensitive, this.this$1.val$getWsdlURL);

      for (WsdlPortInfo var6 : var2) {
         var6.setUddiRegistryId(this.this$1.val$registryGoid.toHexString());
      }

      Arrays.sort(var2, new ResolvingComparator(new j(this), false));
      return var2;
   }
}
