class ServiceBindingsBuilder {

    public void unbind(String interfaceName) {
        ServiceBinding binding = bindings.remove(interfaceName);
        if (binding != null) {
            if (binding.isLocked()) {
                throw new ServiceConfigurationException("interface " + interfaceName +
                                                        " is locked and cannot be unbound");
            }
        }
    }

}