class LdapConfigService extends AbstractArchivistService<LdapConfig> {

    public LdapConfig get(String environmentCrn) {
        String accountId = crnService.getCurrentAccountId();
        return ldapConfigRepository.findByAccountIdAndEnvironmentCrnAndClusterNameIsNullAndArchivedIsFalse(accountId, environmentCrn)
                .orElseThrow(notFound("LdapConfig for environment", environmentCrn));
    }

}