class KerberosConfigService extends AbstractArchivistService<KerberosConfig> {

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

}