TSSConfig config = new TSSConfig();
if (server.getTssConfig() != null) {
config.setTransport_mech(server.getTssConfig().getTransport_mech());
} else {
config.setTransport_mech(new TSSNULLTransportConfig());
}
config.getMechListConfig().setStateful(tssConfig.getMechListConfig().isStateful());
for (int i = 0; i < tssConfig.getMechListConfig().size(); i++) {
config.getMechListConfig().add(tssConfig.getMechListConfig().mechAt(i));