public SimpleFieldSet getFieldSet() {
if(hashes == null) {
Logger.error(this, "Hashes == null, possibly persistence issue caused prior to build 1411 on "+this);
return null;
}
SimpleFieldSet fs = new SimpleFieldSet(false);
SimpleFieldSet values = new SimpleFieldSet(false);
for(HashResult hash : hashes) {
if(hash == null) {
Logger.error(this, "Hash == null, possibly persistence issue caused prior to build 1411 on "+this);
return null;
}
values.putOverwrite(hash.type.name(), hash.hashAsHex());
}
fs.put("Hashes", values);
fs.putOverwrite("Identifier", identifier);
fs.put("Global", global);
return fs;