int errCode, String errStr) {
//InfoQuery iqError = createIQ(ID, to, from, "error");
//XMPPError error = new XMPPError(new XMPPError.Condition(errStr));
XMPPError error = new XMPPError(errStr, errCode);
//InfoQuery iqError = new InfoQuery(to,ID,error);
System.out.println("Created Error Packet:" + error);
return new Jingle(ID,to,error);