*/
public JHeader[] getHeaders() {
List<JHeader> headers = new ArrayList<JHeader>();
for (int i = 0; i < MAX_HEADERS; i++) {
if (hasSubHeader(i) && X_HEADERS[i] != null) {
JHeader header = X_HEADERS[i];
// parent.getHeader(header); // TODO: fix this
headers.add(X_HEADERS[i]);
}
}
return headers.toArray(new JHeader[headers.size()]);