public boolean executeAddOperation(final LdapEntry entry) {
        return FunctionUtils.doAndHandle(() -> {
            val operation = new AddOperation(connectionFactory);
            val response = operation.execute(new AddRequest(entry.getDn(), entry.getAttributes()));
            LOGGER.debug("Result code [{}], message: [{}]", response.getResultCode(), response.getDiagnosticMessage());
            return response.getResultCode() == ResultCode.SUCCESS;
        }, e -> false).get();
    }
Execute add operation.

@param entry the entry
@return true/false
support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/util/LdapConnectionFactory.java