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 t implements UnaryThrows<WsdlPortInfo[], UDDIClient, UDDIException> {
   final s this$1;

   t(s var1) {
      this.this$1 = var1;
   }

   public WsdlPortInfo[] call(UDDIClient var1) throws UDDIException {
      WsdlPortInfo[] var2 = this.this$1.this$0.c.getWsdlInfoForServiceKey(var1, this.this$1.val$serviceKey, this.this$1.val$getFirstOnly);

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

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