public static void allowAccess(ExternalComponentConfiguration configuration) throws ModificationNotAllowedException {
        // Alert listeners about this event
        for (ExternalComponentManagerListener listener : listeners) {
            try {
                listener.componentAllowed(configuration.getSubdomain(), configuration); 
            } catch (Exception e) {
                Log.warn("An exception occurred while dispatching a 'componentAllowed' event!", e);
            }
        }
        // Remove any previous configuration for this external component
        deleteConfigurationFromDB(configuration);
        // Update the database with the new granted permission and configuration
        configuration.setPermission(Permission.allowed);
        addConfiguration(configuration);
    }
Allows an external component to connect to the local server with the specified configuration.

@param configuration the configuration for the external component.
@throws ModificationNotAllowedException if the operation was denied.
xmppserver/src/main/java/org/jivesoftware/openfire/component/ExternalComponentManager.java