Message msg = new Message(joiner, null, null);
if(log.isDebugEnabled()){
log.debug("Creating JoinRsp with failure message - " + message);
}
JoinRsp joinRes = new JoinRsp(message);
//need to specify the error message on the JoinRsp object once it's been changed
GMS.GmsHeader gmsHeader = new GMS.GmsHeader(GMS.GmsHeader.JOIN_RSP, joinRes);
msg.putHeader(GMS.name, gmsHeader);