if (record == null) {
record = getEditor().getRepository();
if (record.getProtocol() == null || context.getApplicationConfiguration().getProtocolFactories().get(record.getProtocol().getKind()) == null) {
record = new HrRecord();
record.setProtocol(new HarvestProtocolResource());
ProtocolInvoker.setUpdateContent(record.getProtocol(), true);
ProtocolInvoker.setUpdateDefinition(record.getProtocol(), true);
ProtocolInvoker.setAutoApprove(record.getProtocol(), true);
record.setFindable(true);
record.setSearchable(true);