/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.admin.UDDIRegistryAdmin
 *  com.l7tech.gateway.common.admin.UDDIRegistryAdmin$EndpointScheme
 *  com.l7tech.gateway.common.admin.UDDIRegistryAdmin$PublishProxiedServiceException
 *  com.l7tech.gateway.common.admin.UDDIRegistryAdmin$UDDIRegistryNotEnabledException
 *  com.l7tech.gateway.common.service.PublishedService
 *  com.l7tech.gateway.common.service.ServiceHeader
 *  com.l7tech.gateway.common.uddi.UDDIProxiedServiceInfo
 *  com.l7tech.gateway.common.uddi.UDDIProxiedServiceInfo$PublishType
 *  com.l7tech.gateway.common.uddi.UDDIPublishStatus
 *  com.l7tech.gateway.common.uddi.UDDIPublishStatus$PublishStatus
 *  com.l7tech.gateway.common.uddi.UDDIRegistry
 *  com.l7tech.gateway.common.uddi.UDDIRegistry$UDDIRegistryType
 *  com.l7tech.gateway.common.uddi.UDDIServiceControl
 *  com.l7tech.gateway.common.uddi.UDDIServiceControlRuntime
 *  com.l7tech.objectmodel.DeleteException
 *  com.l7tech.objectmodel.FindException
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.objectmodel.PersistentEntity
 *  com.l7tech.objectmodel.SaveException
 *  com.l7tech.objectmodel.SecurityZone
 *  com.l7tech.objectmodel.UpdateException
 *  com.l7tech.objectmodel.VersionException
 *  com.l7tech.uddi.UDDIClient
 *  com.l7tech.uddi.UDDIException
 *  com.l7tech.uddi.UDDIUtilities
 *  com.l7tech.util.ExceptionUtils
 *  com.l7tech.util.ResourceUtils
 *  com.l7tech.wsdl.Wsdl
 *  javax.wsdl.WSDLException
 *  org.apache.commons.lang3.ObjectUtils
 *  org.jetbrains.annotations.Nullable
 *  org.springframework.transaction.support.TransactionSynchronization
 *  org.springframework.transaction.support.TransactionSynchronizationManager
 */
package com.l7tech.server.uddi;

import com.l7tech.gateway.common.admin.UDDIRegistryAdmin;
import com.l7tech.gateway.common.service.PublishedService;
import com.l7tech.gateway.common.service.ServiceHeader;
import com.l7tech.gateway.common.uddi.UDDIProxiedServiceInfo;
import com.l7tech.gateway.common.uddi.UDDIPublishStatus;
import com.l7tech.gateway.common.uddi.UDDIRegistry;
import com.l7tech.gateway.common.uddi.UDDIServiceControl;
import com.l7tech.gateway.common.uddi.UDDIServiceControlRuntime;
import com.l7tech.objectmodel.DeleteException;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.PersistentEntity;
import com.l7tech.objectmodel.SaveException;
import com.l7tech.objectmodel.SecurityZone;
import com.l7tech.objectmodel.UpdateException;
import com.l7tech.objectmodel.VersionException;
import com.l7tech.server.service.ServiceCache;
import com.l7tech.server.service.ServiceManager;
import com.l7tech.server.uddi.UDDIBusinessServiceStatus;
import com.l7tech.server.uddi.UDDIBusinessServiceStatusManager;
import com.l7tech.server.uddi.UDDICoordinator;
import com.l7tech.server.uddi.UDDIHelper;
import com.l7tech.server.uddi.UDDIProxiedServiceInfoManager;
import com.l7tech.server.uddi.UDDIPublishStatusManager;
import com.l7tech.server.uddi.UDDIRegistryManager;
import com.l7tech.server.uddi.UDDIServiceControlManager;
import com.l7tech.server.uddi.UDDIServiceControlRuntimeManager;
import com.l7tech.server.uddi.ax;
import com.l7tech.server.uddi.ay;
import com.l7tech.uddi.UDDIClient;
import com.l7tech.uddi.UDDIException;
import com.l7tech.uddi.UDDIUtilities;
import com.l7tech.util.ExceptionUtils;
import com.l7tech.util.ResourceUtils;
import com.l7tech.wsdl.Wsdl;
import java.io.Closeable;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.wsdl.WSDLException;
import org.apache.commons.lang3.ObjectUtils;
import org.jetbrains.annotations.Nullable;
import org.springframework.transaction.support.TransactionSynchronization;
import org.springframework.transaction.support.TransactionSynchronizationManager;

public class UDDIRegistryAdminImpl
implements UDDIRegistryAdmin {
    protected static final Logger logger;
    private final UDDIRegistryManager a;
    private final UDDIHelper b;
    private final UDDIProxiedServiceInfoManager c;
    private final UDDIPublishStatusManager d;
    private final UDDIServiceControlManager e;
    private final UDDIServiceControlRuntimeManager f;
    private final UDDICoordinator g;
    private final ServiceCache h;
    private final UDDIBusinessServiceStatusManager i;
    private final ServiceManager j;
    private static final String k;
    private static final String[] l;

    public UDDIRegistryAdminImpl(UDDIRegistryManager uDDIRegistryManager, UDDIHelper uDDIHelper, UDDIServiceControlManager uDDIServiceControlManager, UDDICoordinator uDDICoordinator, ServiceCache serviceCache, UDDIProxiedServiceInfoManager uDDIProxiedServiceInfoManager, UDDIPublishStatusManager uDDIPublishStatusManager, UDDIServiceControlRuntimeManager uDDIServiceControlRuntimeManager, UDDIBusinessServiceStatusManager uDDIBusinessServiceStatusManager, ServiceManager serviceManager) {
        this.a = uDDIRegistryManager;
        this.b = uDDIHelper;
        this.e = uDDIServiceControlManager;
        this.g = uDDICoordinator;
        this.h = serviceCache;
        this.c = uDDIProxiedServiceInfoManager;
        this.d = uDDIPublishStatusManager;
        this.f = uDDIServiceControlRuntimeManager;
        this.i = uDDIBusinessServiceStatusManager;
        this.j = serviceManager;
    }

    public Goid saveUDDIRegistry(UDDIRegistry uDDIRegistry) throws SaveException, UpdateException, FindException {
        block38: {
            String[] stringArray;
            block37: {
                boolean bl2;
                String string;
                boolean bl3;
                boolean bl4;
                block35: {
                    block34: {
                        String string2;
                        UDDIRegistry uDDIRegistry2;
                        block33: {
                            block32: {
                                boolean bl5;
                                boolean bl6;
                                block31: {
                                    block30: {
                                        block28: {
                                            block29: {
                                                try {
                                                    try {
                                                        if (!Goid.isDefault((Goid)uDDIRegistry.getGoid())) break block28;
                                                        if (!uDDIRegistry.getName().trim().isEmpty()) break block29;
                                                    }
                                                    catch (SaveException saveException) {
                                                        throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                                                    }
                                                    throw new SaveException(l[6]);
                                                }
                                                catch (SaveException saveException) {
                                                    throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                                                }
                                            }
                                            this.a.save((PersistentEntity)uDDIRegistry);
                                            String[] stringArray2 = l;
                                            logger.info(stringArray2[58] + uDDIRegistry.getName() + "'");
                                            break block38;
                                        }
                                        try {
                                            if (uDDIRegistry.getName().trim().isEmpty()) {
                                                throw new UpdateException(l[33]);
                                            }
                                        }
                                        catch (SaveException saveException) {
                                            throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                                        }
                                        uDDIRegistry2 = (UDDIRegistry)this.a.findByPrimaryKey(uDDIRegistry.getGoid());
                                        try {
                                            if (uDDIRegistry2 == null) {
                                                throw new FindException(l[34] + String.valueOf(uDDIRegistry.getGoid()) + ")");
                                            }
                                        }
                                        catch (SaveException saveException) {
                                            throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                                        }
                                        try {
                                            try {
                                                if (uDDIRegistry2.isMonitoringEnabled() || !uDDIRegistry.isMonitoringEnabled()) break block30;
                                            }
                                            catch (SaveException saveException) {
                                                throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                                            }
                                            bl6 = true;
                                            break block31;
                                        }
                                        catch (SaveException saveException) {
                                            throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                                        }
                                    }
                                    bl6 = false;
                                }
                                bl4 = bl6;
                                try {
                                    bl5 = uDDIRegistry2.isSubscribeForNotifications() != uDDIRegistry.isSubscribeForNotifications();
                                }
                                catch (SaveException saveException) {
                                    throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                                }
                                bl3 = bl5;
                                try {
                                    if (!bl4) break block32;
                                    string2 = l[35];
                                    break block33;
                                }
                                catch (SaveException saveException) {
                                    throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                                }
                            }
                            stringArray = l;
                            string2 = stringArray[71];
                        }
                        string = string2;
                        try {
                            try {
                                if (uDDIRegistry2.isEnabled() || !uDDIRegistry.isEnabled()) break block34;
                            }
                            catch (SaveException saveException) {
                                throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                            }
                            bl2 = true;
                            break block35;
                        }
                        catch (SaveException saveException) {
                            throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                        }
                    }
                    bl2 = false;
                }
                boolean bl7 = bl2;
                try {
                    block36: {
                        try {
                            try {
                                if (bl3 || bl4) break block36;
                            }
                            catch (SaveException saveException) {
                                throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                            }
                            if (!bl7) break block37;
                        }
                        catch (SaveException saveException) {
                            throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                        }
                    }
                    TransactionSynchronizationManager.registerSynchronization((TransactionSynchronization)new ax(this, bl7, uDDIRegistry, string));
                }
                catch (SaveException saveException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
                }
            }
            this.a.update((PersistentEntity)uDDIRegistry);
            stringArray = l;
            logger.info(stringArray[32] + uDDIRegistry.getName() + stringArray[40] + String.valueOf(uDDIRegistry.getGoid()));
        }
        return uDDIRegistry.getGoid();
    }

    public void deleteUDDIRegistry(Goid goid) throws DeleteException, FindException, UDDIException, UDDIRegistryAdmin.UDDIRegistryNotEnabledException {
        UDDIRegistry uDDIRegistry = (UDDIRegistry)this.a.findByPrimaryKey(goid);
        try {
            if (uDDIRegistry == null) {
                throw new FindException(l[48]);
            }
        }
        catch (DeleteException deleteException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
        }
        logger.log(Level.INFO, l[42] + String.valueOf(goid));
        this.a.delete(goid);
    }

    public Collection<UDDIRegistry> findAllUDDIRegistries() throws FindException {
        return this.a.findAll();
    }

    public UDDIRegistry findByPrimaryKey(Goid goid) throws FindException {
        return (UDDIRegistry)this.a.findByPrimaryKey(goid);
    }

    public boolean subscriptionNotificationsAvailable(Goid goid) {
        return this.g.isNotificationServiceAvailable(goid);
    }

    public boolean metricsAvailable(Goid goid) throws FindException {
        boolean bl2 = false;
        UDDIRegistry uDDIRegistry = this.findByPrimaryKey(goid);
        if (uDDIRegistry != null) {
            bl2 = UDDIRegistry.UDDIRegistryType.CENTRASITE_ACTIVE_SOA.toString().equals(uDDIRegistry.getUddiRegistryType());
        }
        return bl2;
    }

    public void testUDDIRegistryAuthentication(UDDIRegistry uDDIRegistry) throws UDDIException {
        try {
            if (uDDIRegistry == null) {
                throw new NullPointerException(l[5]);
            }
        }
        catch (UDDIException uDDIException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)uDDIException));
        }
        UDDIClient uDDIClient = null;
        try {
            uDDIClient = this.a(uDDIRegistry);
            uDDIClient.getOperationalInfo(l[67]);
        }
        catch (UDDIException uDDIException) {
            throw new UDDIException(ExceptionUtils.getMessage((Throwable)uDDIException));
        }
        catch (FindException findException) {
            throw new UDDIException((Throwable)findException);
        }
        finally {
            ResourceUtils.closeQuietly((Closeable)uDDIClient);
        }
    }

    private UDDIClient a(UDDIRegistry uDDIRegistry) throws FindException {
        return this.b.newUDDIClient(uDDIRegistry);
    }

    public UDDIProxiedServiceInfo findProxiedServiceInfoForPublishedService(Goid goid) throws FindException {
        return this.c.findByPublishedServiceGoid(goid);
    }

    public UDDIPublishStatus getPublishStatusForProxy(Goid goid, Goid goid2) throws FindException {
        UDDIPublishStatus uDDIPublishStatus = this.d.findByProxiedSerivceInfoGoid(goid);
        try {
            if (uDDIPublishStatus == null) {
                throw new FindException(l[41] + String.valueOf(goid) + ")");
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        return uDDIPublishStatus;
    }

    public void deleteGatewayEndpointFromUDDI(UDDIProxiedServiceInfo uDDIProxiedServiceInfo) throws FindException, UDDIRegistryAdmin.UDDIRegistryNotEnabledException, UpdateException, DeleteException {
        try {
            if (uDDIProxiedServiceInfo.getPublishType() != UDDIProxiedServiceInfo.PublishType.ENDPOINT) {
                throw new IllegalStateException(l[54]);
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        this.a(uDDIProxiedServiceInfo);
    }

    public void deleteGatewayWsdlFromUDDI(UDDIProxiedServiceInfo uDDIProxiedServiceInfo) throws FindException, UDDIRegistryAdmin.UDDIRegistryNotEnabledException, UpdateException, DeleteException {
        block4: {
            try {
                try {
                    if (uDDIProxiedServiceInfo.getPublishType() == UDDIProxiedServiceInfo.PublishType.PROXY || uDDIProxiedServiceInfo.getPublishType() == UDDIProxiedServiceInfo.PublishType.OVERWRITE) break block4;
                }
                catch (FindException findException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
                }
                throw new IllegalStateException(l[38]);
            }
            catch (FindException findException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
            }
        }
        this.a(uDDIProxiedServiceInfo);
    }

    private void a(UDDIProxiedServiceInfo uDDIProxiedServiceInfo) throws DeleteException, UpdateException, FindException, UDDIRegistryAdmin.UDDIRegistryNotEnabledException {
        block35: {
            UDDIPublishStatus.PublishStatus publishStatus;
            block36: {
                block34: {
                    UDDIPublishStatus uDDIPublishStatus;
                    block27: {
                        block29: {
                            String[] stringArray;
                            String string;
                            Level level;
                            Logger logger;
                            block33: {
                                block32: {
                                    boolean bl2;
                                    block31: {
                                        block30: {
                                            UDDIRegistry uDDIRegistry = (UDDIRegistry)this.a.findByPrimaryKey(uDDIProxiedServiceInfo.getUddiRegistryGoid());
                                            this.b(uDDIRegistry);
                                            uDDIPublishStatus = this.d.findByProxiedSerivceInfoGoid(uDDIProxiedServiceInfo.getGoid());
                                            try {
                                                if (uDDIPublishStatus == null) {
                                                    throw new FindException(l[73] + String.valueOf(uDDIProxiedServiceInfo.getGoid()) + ")");
                                                }
                                            }
                                            catch (DeleteException deleteException) {
                                                throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
                                            }
                                            publishStatus = uDDIPublishStatus.getPublishStatus();
                                            try {
                                                try {
                                                    block28: {
                                                        try {
                                                            try {
                                                                block26: {
                                                                    try {
                                                                        try {
                                                                            try {
                                                                                if (publishStatus == UDDIPublishStatus.PublishStatus.CANNOT_DELETE || publishStatus == UDDIPublishStatus.PublishStatus.CANNOT_PUBLISH) break block26;
                                                                            }
                                                                            catch (DeleteException deleteException) {
                                                                                throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
                                                                            }
                                                                            if (publishStatus == UDDIPublishStatus.PublishStatus.PUBLISH_FAILED) break block26;
                                                                        }
                                                                        catch (DeleteException deleteException) {
                                                                            throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
                                                                        }
                                                                        if (publishStatus != UDDIPublishStatus.PublishStatus.DELETE_FAILED) break block27;
                                                                    }
                                                                    catch (DeleteException deleteException) {
                                                                        throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
                                                                    }
                                                                }
                                                                if (publishStatus == UDDIPublishStatus.PublishStatus.DELETE_FAILED) break block28;
                                                            }
                                                            catch (DeleteException deleteException) {
                                                                throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
                                                            }
                                                            if (publishStatus != UDDIPublishStatus.PublishStatus.PUBLISH_FAILED) break block29;
                                                        }
                                                        catch (DeleteException deleteException) {
                                                            throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
                                                        }
                                                    }
                                                    if (publishStatus != UDDIPublishStatus.PublishStatus.DELETE_FAILED) break block30;
                                                }
                                                catch (DeleteException deleteException) {
                                                    throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
                                                }
                                                bl2 = true;
                                                break block31;
                                            }
                                            catch (DeleteException deleteException) {
                                                throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
                                            }
                                        }
                                        bl2 = false;
                                    }
                                    boolean bl3 = bl2;
                                    try {
                                        logger = UDDIRegistryAdminImpl.logger;
                                        level = Level.WARNING;
                                        if (!bl3) break block32;
                                        string = l[29];
                                        break block33;
                                    }
                                    catch (DeleteException deleteException) {
                                        throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
                                    }
                                }
                                stringArray = l;
                                string = stringArray[8];
                            }
                            stringArray = l;
                            logger.log(level, stringArray[30] + string + stringArray[0]);
                        }
                        this.c.delete((PersistentEntity)uDDIProxiedServiceInfo);
                        break block35;
                    }
                    try {
                        if (publishStatus != UDDIPublishStatus.PublishStatus.PUBLISHED) break block34;
                        uDDIPublishStatus.setPublishStatus(UDDIPublishStatus.PublishStatus.DELETE);
                        this.d.update((PersistentEntity)uDDIPublishStatus);
                        logger.log(Level.INFO, l[68]);
                        break block35;
                    }
                    catch (DeleteException deleteException) {
                        throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
                    }
                }
                try {
                    if (publishStatus != UDDIPublishStatus.PublishStatus.PUBLISH) break block36;
                    logger.log(Level.WARNING, l[1]);
                    break block35;
                }
                catch (DeleteException deleteException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
                }
            }
            try {
                if (publishStatus == UDDIPublishStatus.PublishStatus.DELETE) {
                    logger.log(Level.WARNING, l[3]);
                }
            }
            catch (DeleteException deleteException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)deleteException));
            }
        }
    }

    public void updateProxiedServiceOnly(UDDIProxiedServiceInfo uDDIProxiedServiceInfo) throws UpdateException, FindException {
        block44: {
            UDDIProxiedServiceInfo uDDIProxiedServiceInfo2;
            block45: {
                boolean bl2;
                boolean bl3;
                boolean bl4;
                block43: {
                    block42: {
                        boolean bl5;
                        boolean bl6;
                        block41: {
                            block40: {
                                boolean bl7;
                                block39: {
                                    block38: {
                                        boolean bl8;
                                        block37: {
                                            block36: {
                                                uDDIProxiedServiceInfo2 = (UDDIProxiedServiceInfo)this.c.findByPrimaryKey(uDDIProxiedServiceInfo.getGoid());
                                                try {
                                                    if (uDDIProxiedServiceInfo2 == null) {
                                                        throw new FindException(l[72] + String.valueOf(uDDIProxiedServiceInfo.getGoid()) + ")");
                                                    }
                                                }
                                                catch (UpdateException updateException) {
                                                    throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                                                }
                                                try {
                                                    block35: {
                                                        try {
                                                            try {
                                                                try {
                                                                    try {
                                                                        try {
                                                                            if (uDDIProxiedServiceInfo2.isUpdateProxyOnLocalChange() != uDDIProxiedServiceInfo.isUpdateProxyOnLocalChange() || uDDIProxiedServiceInfo2.isMetricsEnabled() != uDDIProxiedServiceInfo.isMetricsEnabled()) break block35;
                                                                        }
                                                                        catch (UpdateException updateException) {
                                                                            throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                                                                        }
                                                                        if (uDDIProxiedServiceInfo2.isPublishWsPolicyEnabled() != uDDIProxiedServiceInfo.isPublishWsPolicyEnabled()) break block35;
                                                                    }
                                                                    catch (UpdateException updateException) {
                                                                        throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                                                                    }
                                                                    if (uDDIProxiedServiceInfo2.isPublishWsPolicyFull() != uDDIProxiedServiceInfo.isPublishWsPolicyFull()) break block35;
                                                                }
                                                                catch (UpdateException updateException) {
                                                                    throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                                                                }
                                                                if (uDDIProxiedServiceInfo2.isPublishWsPolicyInlined() != uDDIProxiedServiceInfo.isPublishWsPolicyInlined()) break block35;
                                                            }
                                                            catch (UpdateException updateException) {
                                                                throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                                                            }
                                                            if (ObjectUtils.equals((Object)uDDIProxiedServiceInfo2.getSecurityZone(), (Object)uDDIProxiedServiceInfo.getSecurityZone())) break block36;
                                                        }
                                                        catch (UpdateException updateException) {
                                                            throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                                                        }
                                                    }
                                                    bl8 = true;
                                                    break block37;
                                                }
                                                catch (UpdateException updateException) {
                                                    throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                                                }
                                            }
                                            bl8 = false;
                                        }
                                        bl4 = bl8;
                                        try {
                                            try {
                                                if (!uDDIProxiedServiceInfo.isUpdateProxyOnLocalChange() || uDDIProxiedServiceInfo2.isUpdateProxyOnLocalChange() == uDDIProxiedServiceInfo.isUpdateProxyOnLocalChange()) break block38;
                                            }
                                            catch (UpdateException updateException) {
                                                throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                                            }
                                            bl7 = true;
                                            break block39;
                                        }
                                        catch (UpdateException updateException) {
                                            throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                                        }
                                    }
                                    bl7 = false;
                                }
                                bl3 = bl7;
                                bl6 = uDDIProxiedServiceInfo2.areKeyedReferencesDifferent((Set)uDDIProxiedServiceInfo.getProperty(UDDIProxiedServiceInfo.KEYED_REFERENCES_CONFIG));
                                try {
                                    try {
                                        if (!bl4 && !bl6) break block40;
                                    }
                                    catch (UpdateException updateException) {
                                        throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                                    }
                                    bl5 = true;
                                    break block41;
                                }
                                catch (UpdateException updateException) {
                                    throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                                }
                            }
                            bl5 = false;
                        }
                        bl4 = bl5;
                        try {
                            try {
                                if (!bl3 && !bl6) break block42;
                            }
                            catch (UpdateException updateException) {
                                throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                            }
                            bl2 = true;
                            break block43;
                        }
                        catch (UpdateException updateException) {
                            throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                        }
                    }
                    bl2 = false;
                }
                boolean bl9 = bl2;
                try {
                    if (!bl4) break block44;
                    if (!bl9) break block45;
                }
                catch (UpdateException updateException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                }
                UDDIPublishStatus uDDIPublishStatus = this.d.findByProxiedSerivceInfoGoid(uDDIProxiedServiceInfo2.getGoid());
                try {
                    try {
                        try {
                            if (uDDIPublishStatus.getPublishStatus() != UDDIPublishStatus.PublishStatus.PUBLISHED && uDDIPublishStatus.getPublishStatus() != UDDIPublishStatus.PublishStatus.PUBLISH_FAILED) break block45;
                        }
                        catch (UpdateException updateException) {
                            throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                        }
                        uDDIPublishStatus.setPublishStatus(UDDIPublishStatus.PublishStatus.PUBLISH);
                        this.d.update((PersistentEntity)uDDIPublishStatus);
                        if (!bl3) break block45;
                    }
                    catch (UpdateException updateException) {
                        throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                    }
                    logger.log(Level.INFO, l[17]);
                }
                catch (UpdateException updateException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)updateException));
                }
            }
            uDDIProxiedServiceInfo2.copyConfigModifiableProperties(uDDIProxiedServiceInfo);
            this.c.update((PersistentEntity)uDDIProxiedServiceInfo2);
        }
    }

    public Collection<UDDIProxiedServiceInfo> getAllProxiedServicesForRegistry(Goid goid) throws FindException {
        return this.a.findAllByRegistryGoid(goid);
    }

    /*
     * Loose catch block
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public Goid saveUDDIServiceControlOnly(UDDIServiceControl uDDIServiceControl, String string, Long l2) throws UpdateException, SaveException, FindException, UDDIRegistryAdmin.UDDIRegistryNotEnabledException {
        boolean bl2;
        String string2;
        block53: {
            UDDIServiceControl uDDIServiceControl2;
            block52: {
                boolean bl3;
                block51: {
                    block50: {
                        block46: {
                            Goid goid;
                            block49: {
                                Wsdl wsdl;
                                block48: {
                                    block47: {
                                        block54: {
                                            if (!Goid.isDefault((Goid)uDDIServiceControl.getGoid())) break block46;
                                            if (l2 == null) throw new SaveException(l[4]);
                                            break block54;
                                            catch (WSDLException wSDLException) {
                                                throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                                            }
                                        }
                                        try {
                                            if (l2 >= 0L) break block47;
                                            throw new SaveException(l[4]);
                                            catch (WSDLException wSDLException) {
                                                throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                                            }
                                        }
                                        catch (WSDLException wSDLException) {
                                            throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                                        }
                                    }
                                    if (string == null) throw new SaveException(l[61]);
                                    try {
                                        if (!string.trim().isEmpty()) break block48;
                                        throw new SaveException(l[61]);
                                        catch (WSDLException wSDLException) {
                                            throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                                        }
                                    }
                                    catch (WSDLException wSDLException) {
                                        throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                                    }
                                }
                                PublishedService publishedService = (PublishedService)this.j.findByPrimaryKey(uDDIServiceControl.getPublishedServiceGoid());
                                try {
                                    wsdl = publishedService.parsedWsdl();
                                }
                                catch (WSDLException wSDLException) {
                                    String[] stringArray = l;
                                    throw new SaveException(stringArray[27] + String.valueOf(ExceptionUtils.getDebugException((Throwable)wSDLException)));
                                }
                                boolean bl4 = UDDIUtilities.validatePortBelongsToWsdl((Wsdl)wsdl, (String)uDDIServiceControl.getWsdlServiceName(), null, (String)uDDIServiceControl.getWsdlPortName(), (String)uDDIServiceControl.getWsdlPortBinding(), (String)uDDIServiceControl.getWsdlPortBindingNamespace());
                                try {
                                    if (!bl4) {
                                        throw new SaveException(l[62]);
                                    }
                                }
                                catch (WSDLException wSDLException) {
                                    throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                                }
                                if (this.b.isGatewayUrl(string)) {
                                    String[] stringArray = l;
                                    String string3 = stringArray[43];
                                    logger.log(Level.WARNING, stringArray[55]);
                                    throw new SaveException(stringArray[55]);
                                }
                                UDDIRegistry uDDIRegistry = (UDDIRegistry)this.a.findByPrimaryKey(uDDIServiceControl.getUddiRegistryGoid());
                                try {
                                    if (uDDIRegistry == null) {
                                        throw new FindException(l[47]);
                                    }
                                }
                                catch (WSDLException wSDLException) {
                                    throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                                }
                                this.b(uDDIRegistry);
                                goid = this.e.save((PersistentEntity)uDDIServiceControl);
                                UDDIServiceControlRuntime uDDIServiceControlRuntime = new UDDIServiceControlRuntime(goid, l2.longValue(), string);
                                this.f.save((PersistentEntity)uDDIServiceControlRuntime);
                                publishedService.setDefaultRoutingUrl(string);
                                this.j.save((PersistentEntity)publishedService);
                                String[] stringArray = l;
                                logger.log(Level.INFO, stringArray[56] + String.valueOf(publishedService.getGoid()) + ")");
                                UDDIProxiedServiceInfo uDDIProxiedServiceInfo = this.c.findByPublishedServiceGoid(uDDIServiceControl.getPublishedServiceGoid());
                                try {
                                    if (uDDIProxiedServiceInfo == null || uDDIProxiedServiceInfo.getPublishType() != UDDIProxiedServiceInfo.PublishType.PROXY) break block49;
                                }
                                catch (WSDLException wSDLException) {
                                    throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                                }
                                UDDIPublishStatus uDDIPublishStatus = this.d.findByProxiedSerivceInfoGoid(uDDIProxiedServiceInfo.getGoid());
                                uDDIPublishStatus.setPublishStatus(UDDIPublishStatus.PublishStatus.PUBLISH);
                                this.d.update((PersistentEntity)uDDIPublishStatus);
                            }
                            try {
                                if (!uDDIServiceControl.isUnderUddiControl()) return goid;
                                this.a(uDDIServiceControl.getUddiRegistryGoid(), uDDIServiceControl.getUddiServiceKey(), l[44]);
                                return goid;
                            }
                            catch (WSDLException wSDLException) {
                                throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                            }
                        }
                        uDDIServiceControl2 = (UDDIServiceControl)this.e.findByPrimaryKey(uDDIServiceControl.getGoid());
                        try {
                            if (uDDIServiceControl2 == null) {
                                throw new FindException(l[14] + String.valueOf(uDDIServiceControl.getGoid()));
                            }
                        }
                        catch (WSDLException wSDLException) {
                            throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                        }
                        try {
                            if (uDDIServiceControl2.equals((Object)uDDIServiceControl)) {
                                return uDDIServiceControl.getGoid();
                            }
                        }
                        catch (WSDLException wSDLException) {
                            throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                        }
                        string2 = this.a(uDDIServiceControl2, uDDIServiceControl);
                        try {
                            try {
                                if (!uDDIServiceControl2.isUnderUddiControl() || uDDIServiceControl.isUnderUddiControl()) break block50;
                            }
                            catch (WSDLException wSDLException) {
                                throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                            }
                            bl3 = true;
                            break block51;
                        }
                        catch (WSDLException wSDLException) {
                            throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                        }
                    }
                    bl3 = false;
                }
                bl2 = bl3;
                try {
                    try {
                        if (!uDDIServiceControl.isHasHadEndpointRemoved() || !uDDIServiceControl.isUnderUddiControl()) break block52;
                        throw new UpdateException(l[19]);
                    }
                    catch (WSDLException wSDLException) {
                        throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                    }
                }
                catch (WSDLException wSDLException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                }
            }
            UDDIProxiedServiceInfo uDDIProxiedServiceInfo = this.c.findByPublishedServiceGoid(uDDIServiceControl2.getPublishedServiceGoid());
            try {
                try {
                    try {
                        if (uDDIProxiedServiceInfo == null || !uDDIServiceControl.isUnderUddiControl()) break block53;
                    }
                    catch (WSDLException wSDLException) {
                        throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                    }
                    if (uDDIProxiedServiceInfo.getPublishType() == UDDIProxiedServiceInfo.PublishType.PROXY) break block53;
                    throw new UpdateException(l[51]);
                }
                catch (WSDLException wSDLException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
                }
            }
            catch (WSDLException wSDLException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
            }
        }
        this.e.update((PersistentEntity)uDDIServiceControl);
        if (bl2) {
            PublishedService publishedService = (PublishedService)this.j.findByPrimaryKey(uDDIServiceControl.getPublishedServiceGoid());
            publishedService.setDefaultRoutingUrl(null);
            this.j.update((PersistentEntity)publishedService);
            logger.log(Level.INFO, l[69] + String.valueOf(publishedService.getGoid()) + ")");
        }
        try {
            if (string2 == null) return uDDIServiceControl.getGoid();
            this.a(uDDIServiceControl.getUddiRegistryGoid(), uDDIServiceControl.getUddiServiceKey(), string2);
            return uDDIServiceControl.getGoid();
        }
        catch (WSDLException wSDLException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)wSDLException));
        }
    }

    private void a(Goid goid, String string, String string2) {
        TransactionSynchronizationManager.registerSynchronization((TransactionSynchronization)new ay(this, string2, goid, string));
    }

    private String a(UDDIServiceControl uDDIServiceControl, UDDIServiceControl uDDIServiceControl2) {
        block19: {
            block18: {
                block17: {
                    block16: {
                        try {
                            try {
                                if (uDDIServiceControl.isUnderUddiControl() || !uDDIServiceControl2.isUnderUddiControl()) break block16;
                            }
                            catch (NullPointerException nullPointerException) {
                                throw UDDIRegistryAdminImpl.a(nullPointerException);
                            }
                            return l[21];
                        }
                        catch (NullPointerException nullPointerException) {
                            throw UDDIRegistryAdminImpl.a(nullPointerException);
                        }
                    }
                    try {
                        try {
                            if (uDDIServiceControl.isMonitoringEnabled() || !uDDIServiceControl2.isMonitoringEnabled()) break block17;
                        }
                        catch (NullPointerException nullPointerException) {
                            throw UDDIRegistryAdminImpl.a(nullPointerException);
                        }
                        return l[74];
                    }
                    catch (NullPointerException nullPointerException) {
                        throw UDDIRegistryAdminImpl.a(nullPointerException);
                    }
                }
                try {
                    try {
                        if (uDDIServiceControl.isUpdateWsdlOnChange() || !uDDIServiceControl2.isUpdateWsdlOnChange()) break block18;
                    }
                    catch (NullPointerException nullPointerException) {
                        throw UDDIRegistryAdminImpl.a(nullPointerException);
                    }
                    return l[50];
                }
                catch (NullPointerException nullPointerException) {
                    throw UDDIRegistryAdminImpl.a(nullPointerException);
                }
            }
            try {
                try {
                    if (uDDIServiceControl.isDisableServiceOnChange() || !uDDIServiceControl2.isDisableServiceOnChange()) break block19;
                }
                catch (NullPointerException nullPointerException) {
                    throw UDDIRegistryAdminImpl.a(nullPointerException);
                }
                return l[9];
            }
            catch (NullPointerException nullPointerException) {
                throw UDDIRegistryAdminImpl.a(nullPointerException);
            }
        }
        return null;
    }

    public void deleteUDDIServiceControl(Goid goid) throws FindException, DeleteException, UpdateException {
        block10: {
            UDDIServiceControl uDDIServiceControl = (UDDIServiceControl)this.e.findByPrimaryKey(goid);
            try {
                if (uDDIServiceControl == null) {
                    throw new FindException(l[63] + String.valueOf(goid) + ")");
                }
            }
            catch (FindException findException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
            }
            PublishedService publishedService = (PublishedService)this.j.findByPrimaryKey(uDDIServiceControl.getGoid());
            try {
                if (publishedService != null) {
                    publishedService.setDefaultRoutingUrl(null);
                    this.j.update((PersistentEntity)publishedService);
                    logger.log(Level.INFO, l[39] + String.valueOf(publishedService.getGoid()) + ")");
                }
            }
            catch (FindException findException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
            }
            UDDIProxiedServiceInfo uDDIProxiedServiceInfo = this.c.findByPublishedServiceGoid(uDDIServiceControl.getPublishedServiceGoid());
            try {
                try {
                    if (uDDIProxiedServiceInfo == null || uDDIProxiedServiceInfo.getPublishType() == UDDIProxiedServiceInfo.PublishType.PROXY) break block10;
                }
                catch (FindException findException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
                }
                throw new DeleteException(l[22]);
            }
            catch (FindException findException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
            }
        }
        this.e.delete(goid);
    }

    public UDDIServiceControl getUDDIServiceControl(Goid goid) throws FindException {
        return this.e.findByPublishedServiceGoid(goid);
    }

    public String getOriginalServiceEndPoint(Goid goid) throws FindException {
        UDDIServiceControlRuntime uDDIServiceControlRuntime = this.f.findByServiceControlGoid(goid);
        try {
            if (uDDIServiceControlRuntime == null) {
                throw new FindException(l[57] + String.valueOf(goid) + ")");
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        return uDDIServiceControlRuntime.getAccessPointURL();
    }

    public Collection<UDDIServiceControl> getAllServiceControlsForRegistry(Goid goid) throws FindException {
        return this.e.findByUDDIRegistryGoid(goid);
    }

    public void publishGatewayEndpoint(PublishedService publishedService, boolean bl2, Map<String, Object> map, @Nullable SecurityZone securityZone) throws FindException, SaveException, UDDIRegistryAdmin.UDDIRegistryNotEnabledException {
        UDDIRegistry uDDIRegistry;
        UDDIServiceControl uDDIServiceControl;
        PublishedService publishedService2;
        block17: {
            try {
                if (publishedService == null) {
                    throw new NullPointerException(l[13]);
                }
            }
            catch (FindException findException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
            }
            publishedService2 = this.h.getCachedService(publishedService.getGoid());
            try {
                if (publishedService2 == null) {
                    throw new SaveException(l[25] + String.valueOf(publishedService) + l[45]);
                }
            }
            catch (FindException findException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
            }
            uDDIServiceControl = this.e.findByPublishedServiceGoid(publishedService2.getGoid());
            try {
                if (uDDIServiceControl == null) {
                    throw new SaveException(l[25] + String.valueOf(publishedService) + l[52]);
                }
            }
            catch (FindException findException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
            }
            uDDIRegistry = (UDDIRegistry)this.a.findByPrimaryKey(uDDIServiceControl.getUddiRegistryGoid());
            try {
                if (uDDIRegistry == null) {
                    throw new SaveException(l[60] + String.valueOf(uDDIServiceControl.getUddiRegistryGoid()) + l[45]);
                }
            }
            catch (FindException findException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
            }
            try {
                try {
                    this.b(uDDIRegistry);
                    if (!uDDIServiceControl.isUnderUddiControl() || !bl2) break block17;
                }
                catch (FindException findException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
                }
                throw new SaveException(l[37] + String.valueOf(publishedService) + l[15]);
            }
            catch (FindException findException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
            }
        }
        String string = this.a(publishedService2);
        UDDIProxiedServiceInfo uDDIProxiedServiceInfo = UDDIProxiedServiceInfo.getEndPointPublishInfo((Goid)publishedService2.getGoid(), (Goid)uDDIRegistry.getGoid(), (String)uDDIServiceControl.getUddiBusinessKey(), (String)uDDIServiceControl.getUddiBusinessName(), (String)string, (boolean)bl2);
        uDDIProxiedServiceInfo.setSecurityZone(securityZone);
        for (Map.Entry<String, Object> uDDIPublishStatus2 : map.entrySet()) {
            uDDIProxiedServiceInfo.setProperty(uDDIPublishStatus2.getKey(), uDDIPublishStatus2.getValue());
        }
        Goid goid = this.c.save((PersistentEntity)uDDIProxiedServiceInfo);
        UDDIPublishStatus uDDIPublishStatus = new UDDIPublishStatus(goid, UDDIPublishStatus.PublishStatus.PUBLISH);
        this.d.save((PersistentEntity)uDDIPublishStatus);
    }

    public void publishGatewayEndpointGif(PublishedService publishedService, Map<String, Object> map, @Nullable SecurityZone securityZone) throws FindException, SaveException, UDDIRegistryAdmin.UDDIRegistryNotEnabledException {
        try {
            if (publishedService == null) {
                throw new NullPointerException(l[20]);
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        try {
            if (map == null) {
                throw new NullPointerException(l[59]);
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        UDDIRegistryAdmin.EndpointScheme endpointScheme = (UDDIRegistryAdmin.EndpointScheme)map.get(UDDIProxiedServiceInfo.GIF_SCHEME);
        try {
            if (endpointScheme == null) {
                throw new IllegalArgumentException(l[64] + UDDIProxiedServiceInfo.GIF_SCHEME + l[23]);
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        PublishedService publishedService2 = this.h.getCachedService(publishedService.getGoid());
        try {
            if (publishedService2 == null) {
                throw new SaveException(l[70] + String.valueOf(publishedService) + l[31]);
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        UDDIServiceControl uDDIServiceControl = this.e.findByPublishedServiceGoid(publishedService2.getGoid());
        try {
            if (uDDIServiceControl == null) {
                throw new SaveException(l[25] + String.valueOf(publishedService) + l[28]);
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        UDDIRegistry uDDIRegistry = (UDDIRegistry)this.a.findByPrimaryKey(uDDIServiceControl.getUddiRegistryGoid());
        try {
            if (uDDIRegistry == null) {
                throw new SaveException(l[60] + String.valueOf(uDDIServiceControl.getUddiRegistryGoid()) + l[45]);
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        this.b(uDDIRegistry);
        String string = this.a(publishedService2);
        UDDIProxiedServiceInfo uDDIProxiedServiceInfo = UDDIProxiedServiceInfo.getGifEndPointPublishInfo((Goid)publishedService2.getGoid(), (Goid)uDDIRegistry.getGoid(), (String)uDDIServiceControl.getUddiBusinessKey(), (String)uDDIServiceControl.getUddiBusinessName(), (String)string);
        uDDIProxiedServiceInfo.setSecurityZone(securityZone);
        for (Map.Entry<String, Object> uDDIPublishStatus2 : map.entrySet()) {
            uDDIProxiedServiceInfo.setProperty(uDDIPublishStatus2.getKey(), uDDIPublishStatus2.getValue());
        }
        Goid goid = this.c.save((PersistentEntity)uDDIProxiedServiceInfo);
        UDDIPublishStatus uDDIPublishStatus = new UDDIPublishStatus(goid, UDDIPublishStatus.PublishStatus.PUBLISH);
        this.d.save((PersistentEntity)uDDIPublishStatus);
    }

    public void overwriteBusinessServiceInUDDI(PublishedService publishedService, boolean bl2, @Nullable SecurityZone securityZone) throws SaveException, FindException {
        PublishedService publishedService2 = this.h.getCachedService(publishedService.getGoid());
        try {
            if (publishedService2 == null) {
                throw new IllegalArgumentException(l[53] + String.valueOf(publishedService) + ")");
            }
        }
        catch (SaveException saveException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
        }
        UDDIServiceControl uDDIServiceControl = this.e.findByPublishedServiceGoid(publishedService2.getGoid());
        try {
            if (uDDIServiceControl == null) {
                throw new SaveException(l[24]);
            }
        }
        catch (SaveException saveException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)saveException));
        }
        String string = this.a(publishedService2);
        UDDIProxiedServiceInfo uDDIProxiedServiceInfo = UDDIProxiedServiceInfo.getOverwriteProxyServicePublishInfo((Goid)publishedService2.getGoid(), (Goid)uDDIServiceControl.getUddiRegistryGoid(), (String)uDDIServiceControl.getUddiBusinessKey(), (String)uDDIServiceControl.getUddiBusinessName(), (String)string, (boolean)bl2);
        uDDIProxiedServiceInfo.setSecurityZone(securityZone);
        Goid goid = this.c.save((PersistentEntity)uDDIProxiedServiceInfo);
        UDDIPublishStatus uDDIPublishStatus = new UDDIPublishStatus(goid, UDDIPublishStatus.PublishStatus.PUBLISH);
        this.d.save((PersistentEntity)uDDIPublishStatus);
    }

    public void publishGatewayWsdl(PublishedService publishedService, Goid goid, String string, String string2, boolean bl2, @Nullable SecurityZone securityZone) throws FindException, SaveException, UDDIRegistryAdmin.UDDIRegistryNotEnabledException {
        block21: {
            block20: {
                try {
                    if (publishedService == null) {
                        throw new NullPointerException(l[46]);
                    }
                }
                catch (FindException findException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
                }
                try {
                    if (Goid.isDefault((Goid)goid)) {
                        throw new IllegalArgumentException(l[7]);
                    }
                }
                catch (FindException findException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
                }
                try {
                    try {
                        if (string != null && !string.trim().isEmpty()) break block20;
                    }
                    catch (FindException findException) {
                        throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
                    }
                    throw new IllegalArgumentException(l[16]);
                }
                catch (FindException findException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
                }
            }
            try {
                try {
                    if (string2 != null && !string2.trim().isEmpty()) break block21;
                }
                catch (FindException findException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
                }
                throw new IllegalArgumentException(l[65]);
            }
            catch (FindException findException) {
                throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
            }
        }
        UDDIRegistry uDDIRegistry = (UDDIRegistry)this.a.findByPrimaryKey(goid);
        try {
            if (uDDIRegistry == null) {
                throw new IllegalArgumentException(l[11] + String.valueOf(goid));
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        this.b(uDDIRegistry);
        PublishedService publishedService2 = this.h.getCachedService(publishedService.getGoid());
        try {
            if (publishedService2 == null) {
                throw new SaveException(l[25] + String.valueOf(publishedService) + l[45]);
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        String string3 = this.a(publishedService2);
        UDDIProxiedServiceInfo uDDIProxiedServiceInfo = UDDIProxiedServiceInfo.getProxyServicePublishInfo((Goid)publishedService2.getGoid(), (Goid)uDDIRegistry.getGoid(), (String)string, (String)string2, (String)string3, (boolean)bl2);
        uDDIProxiedServiceInfo.setSecurityZone(securityZone);
        Goid goid2 = this.c.save((PersistentEntity)uDDIProxiedServiceInfo);
        UDDIPublishStatus uDDIPublishStatus = new UDDIPublishStatus(goid2, UDDIPublishStatus.PublishStatus.PUBLISH);
        this.d.save((PersistentEntity)uDDIPublishStatus);
    }

    private String a(PublishedService publishedService) {
        String string;
        try {
            string = publishedService.parsedWsdl().getHash();
        }
        catch (Exception exception) {
            String[] stringArray = l;
            String string2 = stringArray[2];
            logger.log(Level.WARNING, stringArray[18], ExceptionUtils.getDebugException((Throwable)exception));
            throw new RuntimeException(stringArray[18], ExceptionUtils.getDebugException((Throwable)exception));
        }
        return string;
    }

    public void updatePublishedGatewayWsdl(Goid goid) throws FindException, UDDIRegistryAdmin.UDDIRegistryNotEnabledException, UDDIRegistryAdmin.PublishProxiedServiceException, UpdateException, VersionException {
        UDDIProxiedServiceInfo uDDIProxiedServiceInfo = (UDDIProxiedServiceInfo)this.c.findByPrimaryKey(goid);
        try {
            if (uDDIProxiedServiceInfo == null) {
                throw new FindException(l[12] + String.valueOf(goid));
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        UDDIRegistry uDDIRegistry = (UDDIRegistry)this.a.findByPrimaryKey(uDDIProxiedServiceInfo.getUddiRegistryGoid());
        this.b(uDDIRegistry);
        UDDIPublishStatus uDDIPublishStatus = this.d.findByProxiedSerivceInfoGoid(uDDIProxiedServiceInfo.getGoid());
        try {
            if (uDDIPublishStatus == null) {
                throw new FindException(l[49] + String.valueOf(uDDIProxiedServiceInfo.getGoid()) + ")");
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        uDDIPublishStatus.setPublishStatus(UDDIPublishStatus.PublishStatus.PUBLISH);
        this.d.update((PersistentEntity)uDDIPublishStatus);
    }

    private void b(UDDIRegistry uDDIRegistry) throws UDDIRegistryAdmin.UDDIRegistryNotEnabledException {
        try {
            if (!uDDIRegistry.isEnabled()) {
                throw new UDDIRegistryAdmin.UDDIRegistryNotEnabledException(l[36] + String.valueOf(uDDIRegistry.getGoid()) + l[26]);
            }
        }
        catch (UDDIRegistryAdmin.UDDIRegistryNotEnabledException uDDIRegistryNotEnabledException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)uDDIRegistryNotEnabledException));
        }
    }

    public Collection<ServiceHeader> getServicesPublishedToUDDI(Collection<Goid> collection) throws FindException {
        try {
            if (collection == null) {
                throw new NullPointerException(l[10]);
            }
        }
        catch (FindException findException) {
            throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
        }
        HashSet<ServiceHeader> hashSet = new HashSet<ServiceHeader>();
        for (Goid goid : collection) {
            ServiceHeader serviceHeader;
            Object object;
            if (this.c.findByPublishedServiceGoid(goid) != null) {
                object = this.h.getCachedService(goid);
                serviceHeader = new ServiceHeader((PublishedService)object);
                hashSet.add(serviceHeader);
                continue;
            }
            object = this.i.findByPublishedService(goid);
            serviceHeader = object.iterator();
            while (serviceHeader.hasNext()) {
                UDDIBusinessServiceStatus uDDIBusinessServiceStatus = (UDDIBusinessServiceStatus)((Object)serviceHeader.next());
                try {
                    if (uDDIBusinessServiceStatus.getUddiPolicyStatus() == UDDIBusinessServiceStatus.Status.NONE && uDDIBusinessServiceStatus.getUddiMetricsReferenceStatus() == UDDIBusinessServiceStatus.Status.NONE) continue;
                }
                catch (FindException findException) {
                    throw UDDIRegistryAdminImpl.a((Exception)((Object)findException));
                }
                PublishedService publishedService = this.h.getCachedService(goid);
                ServiceHeader serviceHeader2 = new ServiceHeader(publishedService);
                hashSet.add(serviceHeader2);
            }
        }
        return Collections.unmodifiableCollection(hashSet);
    }

    /*
     * Unable to fully structure code
     */
    static {
        block10: {
            block9: {
                var5 = new String[75];
                var3_1 = 0;
                var2_2 = "gFQ\u0015Bx\u0012\u0003ra0+;S>3w4+9@7{t?n2\u0012.}5\u0004O\u0012{@\u0004r{?d\"\u0012#vy4\u007f3\u0012\u0000ra4|7KgDF\u0015GvT5|xq^\u0012v\u000e3b9b:Wgzaqb%\u0012%v|?lvB2qy8x>W# \u0004r{?d\"\u0012 vaql3\\\"at%nvZ&`}qd0\u0012\u0010@Q\u001dH\u0012WQ\u0018+2S3r58xvQ2ag4e\"^>3f4\u007fvF(3q4g3F\"=5\u0001g3S4v5&j?Fguz#+2W+va4+\"]gpz<{:W3ve+rf%F9V.u|4o\u0005W5e|2n\u0002[*vF%j;Bgzfqy3C2zg4ovE/v{qx7D.}rqjvg\u0003W\\\u0002n$D.pp\u0012d8F5|y\u007f+\u0015S)}z%+4Wg}`=gv]53{4l7F.ep\u001b2wq8Y3U.`a#rvQ&}{>\u007fvP\"3{$g:J\u0004r{?d\"\u00124rc4+7\u0012\u0012WQ\u0018+\u0004W zf%y/\u00120za9+7\\gvx%{/\u0012)rx4+~]53z?g/\u0012$|{%j?\\.}rqx&S$vfx$2wq8Y3U.`a#r\u0011].w5<~%Fg}z%+4Wgwp7j#^3\n7fw=b%Zggzw\u0017fw=b%Z\"w5\u0002n$D.ppqb%\u0012)|bqh9\\!zr$y3Vggzqi3\u0012#zf0i:W#3b9n8\u0012*|{8\u007f9@\"w5\u0006X\u0012~gp}0e1W4=5\u0012y3S3z{6+\"S4x5%dv@\"ug4x>\u0012 ra4|7K``5\u0006X\u0012~\u001c&\u007fy\u0002n$D.pp\u0018o%\u0012$r{?d\"\u0012%v5?~:^#\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZG4l?A3alq|?F/3z8ol\u0012,\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZE#d.[\"wF4y [$v\\?m9\u00120za9+?V}3%7fw=b%Z\"wF4y [$vR>b2\u0012*ff%+8]33w4+8G+\u007f)\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZF4y [$vV>e\"@(\u007f5&b\"Zg||51vFn3|\"+8]33`?o3@gFQ\u0015BvQ(}a#d:\u00124|52j8\\(g5#n;]1v54s?A3z{6+4[)w|?l\u0002W*cy0\u007f3A'2wq8I#A.}p\"x\u001dW>3v0e8]33w4+8G+\u007f5>yvW*ca(W\u0014vaql7F\"dt(+\u0001a\u0003_5%dvG7wt%nv[)3@\u0015O\u001f\u0012&`58\u007fvE.\u007fyqe9Egqpq`3B33f(e5Z5|{8q3Vgd|%cvF/v5\u0016j\"W0rl \u0004r{?d\"\u0012 vaql3\\\"at%nvZ&`}qd0\u0012\u0010@Q\u001d\u00a0\u0004r{?d\"\u00124rc4+\u0003v\u0003ZF4y [$vV>e\"@(\u007f;qB8Q(ag4h\"\u00124gt%nx\u0012\u0010@Q\u001d+5S)}z%+4Wgf{5n$\u0012\u0012WQ\u0018+5])gg>gvE/v{q\u007f>Wg|b?b8Ugq`\"b8W4`5\"n$D.ppqb8\u0012\u0012WQ\u0018+>S43}0ov[3`53b8V.}r\u0005n;B+ra4xv@\"~z'n2!7fw=b%Z\"wF4y [$v5<~%Fg}z%+4Wg}`=gG\u0010@Q\u001d+?Ag}z&+#\\#vgq^\u0012v\u000e3v>e\"@(\u007f;qH$W&g|?lvF&`~q\u007f9\u00125vs#n%Zgtt%n!S>4fq\\\u0005v\u000bs\u0004r{?d\"\u0012#vy4\u007f3\u00125vv>y2\u0012(u59d!\u00124vg'b5Wgdt\"+5@\"ra4ovG)g|=+7\\>3e$i:[4{p5+4[)w|?lv]53z'n$E5za%n8\u00124vg'b5Wg{t\"+4W\"}55n:W3vq\n`3e#d&W5glz\u0004r{?d\"\u0012(ep#|$[3v5\"n$D.ppqj%\u00123{p#nv[43{>+$W$|g5+9Tgg}4+\u0014G4z{4x%a\"ac8h3\u0012.}5\u0004O\u0012{gug>fvE/zv9+\"Z\"3E$i:[4{p5+\u0005W5e|2nvE&`52y3S3vq\u001b\u0017fw=b%Z\"wF4y [$v5&b\"Zgzqq(~\u0010n3|\"+8]33p?j4^\"w\u001c\u0004r{?d\"\u00127rg\"nvA\"ac8h3AgDF\u0015Gl\u0012:n3b0xv\\(g52y3S3vqqm$]*3@\u0015O\u001f\u0012oap2d$Vg~t(+>S1v53n3\\gwp=n\"W#:\u000b#vy4\u007f3\u0012!az<\u0014\u0014gz!{?\\ 3t%\u007f3_7g5%dv\u000fn3b0xv\\(g57d#\\#\u0017\u0012cq0\u007f3VgFQ\u0015Bv`\"t|\"\u007f$Kg4O\u0004r{?d\"\u00122cq0\u007f3\u0012&3@\u0015O\u001f\u0012\u0015vr8x\"@>3a>+>S1v50evW*ge(+8S*v5yd$\u0012(}y(+5])gt8e?\\ 3f!j5W4:\"\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZG4l?A3alq|?F/3|5(~/\n|{8\u007f9@.}rqd0\u0012\u0012WQ\u0018+\u0004W zf%y/\u0012/rfqi3W)3g4n8S%\u007fp5%\u0017\u0012WQ\u0018Y3U.`a#rvE.g}qb2\u0012d;\u001c\u0017fw=b%Z\"w5\"n$D.ppq|?F/3|5+u\u001aG\u0004r{?d\"\u0012#vy4\u007f3\u0012\u0012WQ\u0018[$]?zp5X3@1zp2B8T(3t\"+1S3vb0rve\u0014WYq|7Ag}z%+&G%\u007f|\"c3Vi[\u0004\u007fp0y3Vgpz?\u007f3J33c0y?S%\u007fpq/-A\"ac8h3\u001c#vs0~:F\u0015|`%b8U\u0012AY,+9TgFQ\u0015BvW)we>b8Fget=~3\u0012!|gqx3@1zv4+u\u001a\t`3r>b2\u0012z3F\u0004r{?d\"\u0012!z{5+\"Z\"3@\u0015O\u001fb2qy8x>a3ra$xvT(a5\u0004O\u0012{\u0017az)b3V\u0014vg'b5W\u000e}s>+![3{58ou\u001a\u001e\u0003vy4\u007f?\\ 3@\u0015O\u001f\u0012\u0015vr8x\"@>3r>b2\u0012z3(\u0010@Q\u001d+3\\#cz8e\"\u00125|`%n%\u0012%rv:+\"]gg}4+\u0011S3vb0rG\u0010@Q\u001d+?Ag}z&+#\\#vgq^\u0012v\u000e3v>e\"@(\u007f;qH$W&g|?lvF&`~q\u007f9\u00125vs#n%Zgtt%n!S>4fq\\\u0005v\u000b\u000fn3b0xv\\(g57d#\\#\u001f7fw=b%Z\"wF4y [$v52j8\\(g53nv\\2\u007fy\u0018\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZG4l?A3al&\u0004|`=ov\\(g57b8VgFQ\u0015Bv`\"t|\"\u007f$Kggzqo3^\"gpB\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZE$i:[4{F%j\"G43s>yvg\u0003W\\\u0001y9J.vq\u0002n$D.pp\u0018e0]gd|%cv[#0=_\u0010@Q\u001d+?Ag}z&+5])u|6~$W#3a>+4Wgfe5j\"W#3b9n8\u0012\u0012WQ\u0018+5Z&}r4xx\u0012\u0004ap0\u007f?\\ 3a0x=\u00123|5#n0@\"`}ql7F\"dt(,%\u0012\u0010@Q\u001d\u0099\u0004r{?d\"\u00124rc4+\u0003v\u0003ZF4y [$vV>e\"@(\u007f5&b\"Zgzf\u0004e2W5FQ\u0015B\u0015])gg>gv\u000fggg$nz\u00120{p?+3[3{p#+7\u0012%z{5b8U\u0013vx!g7F\"3}0xvP\"v{qj2V\"w5%dvF/v5>y?U.}t=+9@gzsqb\"\u0012/rfqi3W)3z'n$E5za%n8:n3b0xv\\(g52y3S3vqqm$]*3@\u0015O\u001f\u0012oap2d$Vg~t(+>S1v53n3\\gwp=n\"W#: \t|5\u0001~4^.`}4o\u0005W5e|2nvT(f{5+0]536y[\u0004r{?d\"\u0012#vy4\u007f3\u0012\u0012WQ\u0018[$]?zp5X3@1zp2B8T(3t\"+1S3vb0rvg\u0015_5&j%\u0012)|aq{#P+zf9n2\u0012&`50+4[)w|?l\u0002W*cy0\u007f3\u001c(\u0010@Q\u001d+3\\#cz8e\"\u00125|`%n%\u0012%rv:+\"]gg}4+\u0011S3vb0rY\u0014vaqh9\\3vm%+ S5zt3g3\u0012chf4y [$v;5n0S2\u007fa\u0003d#F.}r\u0004Y\u001aOgd|%cvg\u0003W\\qn8V7||?\u007fvD&\u007f`4+0]53f4y [$v5r#G\u0004|`=ov\\(g57b8Vgg}4+$G)g|<nv[)uz#f7F.|{qm9@gFQ\u0015B\u0005W5e|2n\u0015])gg>gvE.g}qb2\u0011o\u0015\u0014rc4ovg\u0003W\\qY3U.`a#rv\u0015\u00197az!n$F.vfqh7\\)|aqi3\u0012)fy=\u0017\u0012WQ\u0018Y3U.`a#rvE.g}qb2\u0012d;j4vg'b5W\u0002}q\u0001d?\\33|\"+$W6f|#n2\u00120{p?+%S1z{6+7\u0012\u0012WQ\u0018X3@1zv4H9\\3az=%vq&}{>\u007fvP\"3{$g:\u001egvx!\u007f/\u0012(a52d8F&z{qd8^>3f!j5W4\u00cd\u0013{pq{#P+zf9n2\u00124vg'b5W``5\u0006X\u0012~gwz4xv\\(g52d8F&z{q\u007f>Wg`p=n5F\"w5&x2^}cz#\u007fv\u001dgdf5glP.}q8e1\u0012${z\"n8\u0012!az<+\"Z\"3z#b1[)ryqI#A.}p\"x\u0005W5e|2nv[)3@\u0015O\u001f\u001cM[|?\u007fl\u0012.u5%c3\u0012 ra4|7KgDF\u0015Gv[43f%j:Wk3|%+5S)3w4+#B#ra4ovT5|xq\u007f>WgDF\u0015GvF&q)\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZF4y [$vV>e\"@(\u007f5&b\"Zgzqq(~\u001b7az!n$F.vfqb%\u0012*zf\"b8Ugg}4+q(2wq8I#A.}p\"x\u0018S*v52j8\\(g53nv\\2\u007fyqd$\u0012\"~e%r%2wq81#V#z;>y1\b4cp2b0[$ra8d8\b1 J!d:[$j%2wq81#V#z;>y1\b4cp2b0[$ra8d8\b1 J!d:[$j,\u0014vaqx\"S3ffq\u007f9\u0012#vy4\u007f3\u0012!|gq{#P+zf9n2\u0012\u0012WQ\u0018+2S3r[\u0004\u007fp0y3Vgpz?\u007f3J33c0y?S%\u007fpq/-A\"ac8h3\u001c#vs0~:F\u0015|`%b8U\u0012AY,+9TgFQ\u0015BvW)we>b8Fget=~3\u0012!|gqx3@1zv4+u\u001a\u001b\u0017fw=b%Z\"wF4y [$v5&b\"Zgzqq(~!\nva9d2\u0012(u5<d8[3|g8e1\u0012/rfqh>S)tp5%(\u0004|`=ov\\(g57b8VgFQ\u0015B\u0006@(k|4o\u0005W5e|2n\u001f\\!|5r#";
                var4_3 = "gFQ\u0015Bx\u0012\u0003ra0+;S>3w4+9@7{t?n2\u0012.}5\u0004O\u0012{@\u0004r{?d\"\u0012#vy4\u007f3\u0012\u0000ra4|7KgDF\u0015GvT5|xq^\u0012v\u000e3b9b:Wgzaqb%\u0012%v|?lvB2qy8x>W# \u0004r{?d\"\u0012 vaql3\\\"at%nvZ&`}qd0\u0012\u0010@Q\u001dH\u0012WQ\u0018+2S3r58xvQ2ag4e\"^>3f4\u007fvF(3q4g3F\"=5\u0001g3S4v5&j?Fguz#+2W+va4+\"]gpz<{:W3ve+rf%F9V.u|4o\u0005W5e|2n\u0002[*vF%j;Bgzfqy3C2zg4ovE/v{qx7D.}rqjvg\u0003W\\\u0002n$D.pp\u0012d8F5|y\u007f+\u0015S)}z%+4Wg}`=gv]53{4l7F.ep\u001b2wq8Y3U.`a#rvQ&}{>\u007fvP\"3{$g:J\u0004r{?d\"\u00124rc4+7\u0012\u0012WQ\u0018+\u0004W zf%y/\u00120za9+7\\gvx%{/\u0012)rx4+~]53z?g/\u0012$|{%j?\\.}rqx&S$vfx$2wq8Y3U.`a#r\u0011].w5<~%Fg}z%+4Wgwp7j#^3\n7fw=b%Zggzw\u0017fw=b%Z\"w5\u0002n$D.ppqb%\u0012)|bqh9\\!zr$y3Vggzqi3\u0012#zf0i:W#3b9n8\u0012*|{8\u007f9@\"w5\u0006X\u0012~gp}0e1W4=5\u0012y3S3z{6+\"S4x5%dv@\"ug4x>\u0012 ra4|7K``5\u0006X\u0012~\u001c&\u007fy\u0002n$D.pp\u0018o%\u0012$r{?d\"\u0012%v5?~:^#\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZG4l?A3alq|?F/3z8ol\u0012,\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZE#d.[\"wF4y [$v\\?m9\u00120za9+?V}3%7fw=b%Z\"wF4y [$vR>b2\u0012*ff%+8]33w4+8G+\u007f)\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZF4y [$vV>e\"@(\u007f5&b\"Zg||51vFn3|\"+8]33`?o3@gFQ\u0015BvQ(}a#d:\u00124|52j8\\(g5#n;]1v54s?A3z{6+4[)w|?l\u0002W*cy0\u007f3A'2wq8I#A.}p\"x\u001dW>3v0e8]33w4+8G+\u007f5>yvW*ca(W\u0014vaql7F\"dt(+\u0001a\u0003_5%dvG7wt%nv[)3@\u0015O\u001f\u0012&`58\u007fvE.\u007fyqe9Egqpq`3B33f(e5Z5|{8q3Vgd|%cvF/v5\u0016j\"W0rl \u0004r{?d\"\u0012 vaql3\\\"at%nvZ&`}qd0\u0012\u0010@Q\u001d\u00a0\u0004r{?d\"\u00124rc4+\u0003v\u0003ZF4y [$vV>e\"@(\u007f;qB8Q(ag4h\"\u00124gt%nx\u0012\u0010@Q\u001d+5S)}z%+4Wgf{5n$\u0012\u0012WQ\u0018+5])gg>gvE/v{q\u007f>Wg|b?b8Ugq`\"b8W4`5\"n$D.ppqb8\u0012\u0012WQ\u0018+>S43}0ov[3`53b8V.}r\u0005n;B+ra4xv@\"~z'n2!7fw=b%Z\"wF4y [$v5<~%Fg}z%+4Wg}`=gG\u0010@Q\u001d+?Ag}z&+#\\#vgq^\u0012v\u000e3v>e\"@(\u007f;qH$W&g|?lvF&`~q\u007f9\u00125vs#n%Zgtt%n!S>4fq\\\u0005v\u000bs\u0004r{?d\"\u0012#vy4\u007f3\u00125vv>y2\u0012(u59d!\u00124vg'b5Wgdt\"+5@\"ra4ovG)g|=+7\\>3e$i:[4{p5+4[)w|?lv]53z'n$E5za%n8\u00124vg'b5Wg{t\"+4W\"}55n:W3vq\n`3e#d&W5glz\u0004r{?d\"\u0012(ep#|$[3v5\"n$D.ppqj%\u00123{p#nv[43{>+$W$|g5+9Tgg}4+\u0014G4z{4x%a\"ac8h3\u0012.}5\u0004O\u0012{gug>fvE/zv9+\"Z\"3E$i:[4{p5+\u0005W5e|2nvE&`52y3S3vq\u001b\u0017fw=b%Z\"wF4y [$v5&b\"Zgzqq(~\u0010n3|\"+8]33p?j4^\"w\u001c\u0004r{?d\"\u00127rg\"nvA\"ac8h3AgDF\u0015Gl\u0012:n3b0xv\\(g52y3S3vqqm$]*3@\u0015O\u001f\u0012oap2d$Vg~t(+>S1v53n3\\gwp=n\"W#:\u000b#vy4\u007f3\u0012!az<\u0014\u0014gz!{?\\ 3t%\u007f3_7g5%dv\u000fn3b0xv\\(g57d#\\#\u0017\u0012cq0\u007f3VgFQ\u0015Bv`\"t|\"\u007f$Kg4O\u0004r{?d\"\u00122cq0\u007f3\u0012&3@\u0015O\u001f\u0012\u0015vr8x\"@>3a>+>S1v50evW*ge(+8S*v5yd$\u0012(}y(+5])gt8e?\\ 3f!j5W4:\"\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZG4l?A3alq|?F/3|5(~/\n|{8\u007f9@.}rqd0\u0012\u0012WQ\u0018+\u0004W zf%y/\u0012/rfqi3W)3g4n8S%\u007fp5%\u0017\u0012WQ\u0018Y3U.`a#rvE.g}qb2\u0012d;\u001c\u0017fw=b%Z\"w5\"n$D.ppq|?F/3|5+u\u001aG\u0004r{?d\"\u0012#vy4\u007f3\u0012\u0012WQ\u0018[$]?zp5X3@1zp2B8T(3t\"+1S3vb0rve\u0014WYq|7Ag}z%+&G%\u007f|\"c3Vi[\u0004\u007fp0y3Vgpz?\u007f3J33c0y?S%\u007fpq/-A\"ac8h3\u001c#vs0~:F\u0015|`%b8U\u0012AY,+9TgFQ\u0015BvW)we>b8Fget=~3\u0012!|gqx3@1zv4+u\u001a\t`3r>b2\u0012z3F\u0004r{?d\"\u0012!z{5+\"Z\"3@\u0015O\u001fb2qy8x>a3ra$xvT(a5\u0004O\u0012{\u0017az)b3V\u0014vg'b5W\u000e}s>+![3{58ou\u001a\u001e\u0003vy4\u007f?\\ 3@\u0015O\u001f\u0012\u0015vr8x\"@>3r>b2\u0012z3(\u0010@Q\u001d+3\\#cz8e\"\u00125|`%n%\u0012%rv:+\"]gg}4+\u0011S3vb0rG\u0010@Q\u001d+?Ag}z&+#\\#vgq^\u0012v\u000e3v>e\"@(\u007f;qH$W&g|?lvF&`~q\u007f9\u00125vs#n%Zgtt%n!S>4fq\\\u0005v\u000b\u000fn3b0xv\\(g57d#\\#\u001f7fw=b%Z\"wF4y [$v52j8\\(g53nv\\2\u007fy\u0018\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZG4l?A3al&\u0004|`=ov\\(g57b8VgFQ\u0015Bv`\"t|\"\u007f$Kggzqo3^\"gpB\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZE$i:[4{F%j\"G43s>yvg\u0003W\\\u0001y9J.vq\u0002n$D.pp\u0018e0]gd|%cv[#0=_\u0010@Q\u001d+?Ag}z&+5])u|6~$W#3a>+4Wgfe5j\"W#3b9n8\u0012\u0012WQ\u0018+5Z&}r4xx\u0012\u0004ap0\u007f?\\ 3a0x=\u00123|5#n0@\"`}ql7F\"dt(,%\u0012\u0010@Q\u001d\u0099\u0004r{?d\"\u00124rc4+\u0003v\u0003ZF4y [$vV>e\"@(\u007f5&b\"Zgzf\u0004e2W5FQ\u0015B\u0015])gg>gv\u000fggg$nz\u00120{p?+3[3{p#+7\u0012%z{5b8U\u0013vx!g7F\"3}0xvP\"v{qj2V\"w5%dvF/v5>y?U.}t=+9@gzsqb\"\u0012/rfqi3W)3z'n$E5za%n8:n3b0xv\\(g52y3S3vqqm$]*3@\u0015O\u001f\u0012oap2d$Vg~t(+>S1v53n3\\gwp=n\"W#: \t|5\u0001~4^.`}4o\u0005W5e|2nvT(f{5+0]536y[\u0004r{?d\"\u0012#vy4\u007f3\u0012\u0012WQ\u0018[$]?zp5X3@1zp2B8T(3t\"+1S3vb0rvg\u0015_5&j%\u0012)|aq{#P+zf9n2\u0012&`50+4[)w|?l\u0002W*cy0\u007f3\u001c(\u0010@Q\u001d+3\\#cz8e\"\u00125|`%n%\u0012%rv:+\"]gg}4+\u0011S3vb0rY\u0014vaqh9\\3vm%+ S5zt3g3\u0012chf4y [$v;5n0S2\u007fa\u0003d#F.}r\u0004Y\u001aOgd|%cvg\u0003W\\qn8V7||?\u007fvD&\u007f`4+0]53f4y [$v5r#G\u0004|`=ov\\(g57b8Vgg}4+$G)g|<nv[)uz#f7F.|{qm9@gFQ\u0015B\u0005W5e|2n\u0015])gg>gvE.g}qb2\u0011o\u0015\u0014rc4ovg\u0003W\\qY3U.`a#rv\u0015\u00197az!n$F.vfqh7\\)|aqi3\u0012)fy=\u0017\u0012WQ\u0018Y3U.`a#rvE.g}qb2\u0012d;j4vg'b5W\u0002}q\u0001d?\\33|\"+$W6f|#n2\u00120{p?+%S1z{6+7\u0012\u0012WQ\u0018X3@1zv4H9\\3az=%vq&}{>\u007fvP\"3{$g:\u001egvx!\u007f/\u0012(a52d8F&z{qd8^>3f!j5W4\u00cd\u0013{pq{#P+zf9n2\u00124vg'b5W``5\u0006X\u0012~gwz4xv\\(g52d8F&z{q\u007f>Wg`p=n5F\"w5&x2^}cz#\u007fv\u001dgdf5glP.}q8e1\u0012${z\"n8\u0012!az<+\"Z\"3z#b1[)ryqI#A.}p\"x\u0005W5e|2nv[)3@\u0015O\u001f\u001cM[|?\u007fl\u0012.u5%c3\u0012 ra4|7KgDF\u0015Gv[43f%j:Wk3|%+5S)3w4+#B#ra4ovT5|xq\u007f>WgDF\u0015GvF&q)\u0004r{?d\"\u0012!z{5+\u0003v\u0003ZF4y [$vV>e\"@(\u007f5&b\"Zgzqq(~\u001b7az!n$F.vfqb%\u0012*zf\"b8Ugg}4+q(2wq8I#A.}p\"x\u0018S*v52j8\\(g53nv\\2\u007fyqd$\u0012\"~e%r%2wq81#V#z;>y1\b4cp2b0[$ra8d8\b1 J!d:[$j%2wq81#V#z;>y1\b4cp2b0[$ra8d8\b1 J!d:[$j,\u0014vaqx\"S3ffq\u007f9\u0012#vy4\u007f3\u0012!|gq{#P+zf9n2\u0012\u0012WQ\u0018+2S3r[\u0004\u007fp0y3Vgpz?\u007f3J33c0y?S%\u007fpq/-A\"ac8h3\u001c#vs0~:F\u0015|`%b8U\u0012AY,+9TgFQ\u0015BvW)we>b8Fget=~3\u0012!|gqx3@1zv4+u\u001a\u001b\u0017fw=b%Z\"wF4y [$v5&b\"Zgzqq(~!\nva9d2\u0012(u5<d8[3|g8e1\u0012/rfqh>S)tp5%(\u0004|`=ov\\(g57b8VgFQ\u0015B\u0006@(k|4o\u0005W5e|2n\u001f\\!|5r#".length();
                var1_4 = 35;
                var0_5 = -1;
lbl7:
                // 2 sources

                while (true) {
                    v0 = 57;
                    v1 = ++var0_5;
                    v2 = var2_2.substring(v1, v1 + var1_4);
                    v3 = -1;
                    break block9;
                    break;
                }
lbl13:
                // 1 sources

                while (true) {
                    var5[var3_1++] = UDDIRegistryAdminImpl.a(v0, UDDIRegistryAdminImpl.a(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    var2_2 = "J<5q*l\\o45{eM8M\u0014\u000bj't\u0015z5\bk$l\tz}=p78)M\u0019\u0012O7w\u0004`8?L j\n`>>V+~\u0013)*2k-8\u0015m~sD\\\u0019\u001fVeq\u000f)34hez\u0019`3<?(w\u0012`)4m |R)\u001e)z$l\u0015g:{k$k\u0017))4?7}\u001a{8(we\u007f\u001d}8,~<?\u000f)\n\b[\t";
                    var4_3 = "J<5q*l\\o45{eM8M\u0014\u000bj't\u0015z5\bk$l\tz}=p78)M\u0019\u0012O7w\u0004`8?L j\n`>>V+~\u0013)*2k-8\u0015m~sD\\\u0019\u001fVeq\u000f)34hez\u0019`3<?(w\u0012`)4m |R)\u001e)z$l\u0015g:{k$k\u0017))4?7}\u001a{8(we\u007f\u001d}8,~<?\u000f)\n\b[\t".length();
                    var1_4 = 66;
                    var0_5 = -1;
lbl22:
                    // 2 sources

                    while (true) {
                        v0 = 119;
                        v4 = ++var0_5;
                        v2 = var2_2.substring(v4, v4 + var1_4);
                        v3 = 0;
                        break block9;
                        break;
                    }
                    break;
                }
lbl28:
                // 1 sources

                while (true) {
                    var5[var3_1++] = UDDIRegistryAdminImpl.a(v0, UDDIRegistryAdminImpl.a(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    break block10;
                    break;
                }
            }
            switch (v3) {
                default: {
                    ** continue;
                }
                ** case 0:
lbl39:
                // 1 sources

                ** continue;
            }
        }
        UDDIRegistryAdminImpl.l = var5;
        UDDIRegistryAdminImpl.k = UDDIRegistryAdminImpl.l[66];
        UDDIRegistryAdminImpl.logger = Logger.getLogger(UDDIRegistryAdminImpl.class.getName());
    }

    private static Exception a(Exception exception) {
        return exception;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0xB);
        }
        return cArray;
    }

    /*
     * Handled impossible loop by duplicating code
     * Enabled aggressive block sorting
     */
    private static String a(int n2, char[] cArray) {
        char[] cArray2;
        block11: {
            int n3;
            int n4;
            int n5;
            block10: {
                n5 = n2;
                cArray2 = cArray;
                n4 = cArray.length;
                n3 = 0;
                if (!true) break block10;
                n4 = n4;
                if (n4 <= n3) break block11;
            }
            do {
                n5 = n5;
                cArray2 = cArray2;
                int n6 = n3;
                cArray2[n6] = (char)(cArray2[n6] ^ (n5 ^ (switch (n3 % 7) {
                    case 0 -> 126;
                    case 1 -> 42;
                    case 2 -> 44;
                    case 3 -> 104;
                    case 4 -> 50;
                    case 5 -> 111;
                    default -> 11;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

