class DBCertificateManager extends DBManager<Certificate> implements CertificateManager {

    @Override
    @SuppressWarnings("unchecked")
    public <T extends Certificate> Set<T> get(final CertificateSelector certificateSelector) {
        return new HashSet<>(
                (List<T>) getWithCriteria(
                    certificateSelector.getCertificateClass(),
                    Collections.singleton(certificateSelector.getCriterion())
                )
        );
    }

    public  DBCertificateManager(final SessionFactory sessionFactory);

}