if (initialized) return;
String timeout = config.getAttributeValue("timeout"); if (timeout != null) try { backendTimeouts = Integer.parseInt(timeout); } catch (NumberFormatException e) { throw new DirectoryManagerConfigurationException("\"" + timeout + "\" is not a legal timeout value", e); } if (backendTimeouts < 0) backendTimeouts = 0;
    public synchronized void setConfig(final Properties config) {        // Sanity check.        if (config == null)            throw new IllegalArgumentException("Configuration cannot be NULL");        // Did we already set the one-time configuration?        if (initialized)            return;                // TODO: Add support for javax.net.ssl.keystore(password).        // Get and verify some properties.        String s = config.getProperty(PROPERTIES_TRUSTSTORE);        if (s != null) {            System.setProperty("javax.net.ssl.truststore", s);            s = config.getProperty(PROPERTIES_TRUSTSTORE_PASSWORD);            if (s != null)                System.setProperty("javax.net.ssl.truststorepassword", s);        }        // Wrap up.        Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());        initialized = true;    }