ProtocolInvoker.setLockTitle(record.getProtocol(), false);
} else {
// if the native resource is available, make sure it's a valid metadata resource
// prepare record for publication; it will validate schema
PublicationRequest pubReq = new PublicationRequest(context, user, nativeResource.getContent());
Schema schema = pubReq.prepareForPublication();
boolean lockTitle = false;
if (record.getName().length() == 0) {
title = schema.getMeaning().getTitle();
} else {
if (!ProtocolInvoker.getLockTitle(record.getProtocol())) {