MetadataElement element = manager
.getMetadataElement(metadataId);
if (element.isKeyField()) {
errors.add("Key fields can not be deleted.");
} else {
manager.deleteMetadata(element);
request.setAttribute("successMessage", "Metadata element ("
+ metadataId + ") successfully deleted.");
}
} catch (NumberFormatException e) {
request.setAttribute("errorMessage",