public boolean hasFlag(byte flag) {
return (flags & flag) != 0;
}
public <T> T getBody() {
return (T) body;
<BUG>}
public short calcCheckCode() {</BUG>
short checkCode = 0;
if (body != null) {
for (int i = 0; i < body.length; i++) {

public boolean hasFlag(byte flag) {
return (flags & flag) != 0;
}
public <T> T getBody() {
return (T) body;
}
public <T> void setBody(T body) {
this.body = (byte[]) body;
}
public short calcCheckCode() {
short checkCode = 0;
if (body != null) {
for (int i = 0; i < body.length; i++) {
