* @param serverType Type of the LDAP server. Currently we only have apacheds implementation.
* @return An instance of LDAPServer
*/
public static LDAPServer createLDAPServer(LDAPServerType serverType){
if (serverType == LDAPServerType.APACHE_DIRECTORY_SERVICE){
return new ApacheLDAPServer();
} else {
throw new IllegalArgumentException("Does not support LDAP server type " +
serverType.name());
}
}