if (myProtocol.getAuthorizationClientCallback() != null) {
e.setUsername(myProtocol.getAuthorizationClientCallback().provideUsername(myProtocol.getUriPath()));
e.setPassword(myProtocol.getAuthorizationClientCallback().providePassword(myProtocol.getUriPath()));
}
} else {
e = new Hl7OverHttpResponseEncoder();
}
if (myProtocol.getRole() == ServerRoleEnum.CLIENT) {
e.setSigner(myProtocol.getSigner());
}