private void addServerDependenciesToClassRealm ( final String serverType , final ExpressionEvaluator expressionEvaluator , final ClassRealm containerRealm ) throws ComponentConfigurationException { final Collection < Artifact > classpathElements = getServerDependencies ( serverType , expressionEvaluator ) ; if ( classpathElements != null ) { for ( final URL url : buildURLs ( classpathElements ) ) { containerRealm . addURL ( url ) ; } } }
Resolve the dependencies for an LDAP server type and add them to the class loader .