@Override
    public void unregister(String organizationId, String applicationId, String version)
            throws RegistrationException, NotAuthorizedException {
        final Set<Throwable> errorHolder = new HashSet<>();
        final CountDownLatch latch = new CountDownLatch(1);
        Client application = new Client();
        application.setOrganizationId(organizationId);
        application.setClientId(applicationId);
        application.setVersion(version);
        // Unregister client; latch until result returned and evaluated
        getEngine().getRegistry().unregisterClient(application, latchedResultHandler(latch, errorHolder));
        awaitOnLatch(latch, errorHolder);
    }
@see IClientResource#unregister(java.lang.String, java.lang.String, java.lang.String)
gateway/api/rest-impl/src/main/java/io/apiman/gateway/api/rest/impl/ClientResourceImpl.java