if (url.startsWith("ldap:")) {
if (url.startsWith("ldap:") || url.startsWith("ldaps:")) {
    public DefaultInitialDirContextFactory(String url) {        this.url = url;        Assert.hasLength(url, "An LDAP connection URL must be supplied.");        if (url.startsWith("ldap:")) {            URI uri = LdapUtils.parseLdapUrl(url);            rootDn = uri.getPath();        } else {            // Assume it's an embedded server            rootDn = url;        }        if (rootDn.startsWith("/")) {            rootDn = rootDn.substring(1);        }        // This doesn't necessarily hold for embedded servers.        //Assert.isTrue(uri.getScheme().equals("ldap"), "Ldap URL must start with 'ldap://'");    }