class SecurityServerConverter {

    public SecurityServer convert(SecurityServerId securityServerId) {
        SecurityServer securityServer = new SecurityServer();
        securityServer.setId(convertId(securityServerId));
        securityServer.setInstanceId(securityServerId.getXRoadInstance());
        securityServer.setMemberClass(securityServerId.getMemberClass());
        securityServer.setMemberCode(securityServerId.getMemberCode());
        securityServer.setServerCode(securityServerId.getServerCode());
        String securityServerAddress = globalConfFacade.getSecurityServerAddress(securityServerId);
        securityServer.setServerAddress(securityServerAddress);
        return securityServer;
    }

    @Autowired public  SecurityServerConverter(ClientConverter clientConverter, GlobalConfFacade globalConfFacade);

}