public char[] createTelegram(char[] payLoad,int type,Object id){
  char[] result={};
  String tgmStr=new String(getNewHeader(payLoad,type,id)) + new String(payLoad) + new String(getFooter(payLoad));
  result=tgmStr.toCharArray();
  return result;
}

public char [ ] createTelegram ( char [ ] payLoad , int type , Object id ) { char [ ] result = { } ; String tgmStr = new String ( getNewHeader ( payLoad , type , id ) ) + new String ( payLoad ) + new String ( getFooter ( payLoad ) ) ; result = tgmStr . toCharArray ( ) ; return result ; }
create a new protocol telegram containing specified payload
