throw new IllegalArgumentException("The writer is null.");
}
// Our EntityEncoder already gave us our root element.
out.write("<bv value=\"");
value = (int) (proto.calculateBattleValue() / proto.getCrew()
.getBVSkillMultiplier());
out.write(value);
out.write("\" /><hasMainGun value=\"");
out.write(proto.hasMainGun() ? "true" : "false");
for (int loc = 0; loc < proto.locations(); loc++) {