class OcspResponderDiagnosticConverter {

    public OcspResponderDiagnostics convert(
            OcspResponderDiagnosticsStatus ocspResponderDiagnosticsStatus) {
        OcspResponderDiagnostics ocspResponderDiagnostics = new OcspResponderDiagnostics();
        ocspResponderDiagnostics.setDistinguishedName(ocspResponderDiagnosticsStatus.getName());
        List<OcspResponder> ocspResponders = convertOcspResponders(
                ocspResponderDiagnosticsStatus.getOcspResponderStatusMap());
        ocspResponderDiagnostics.setOcspResponders(ocspResponders);
        return ocspResponderDiagnostics;
    }

}