* @param vocabulary the new value for the vocabulary.
*/
private void updateVocabulary(String vocabulary) {
selectedElement.removeChangeListener(selectedElementListener);
UndoRedoManager undoRedoManager = context.getUndoRedoManager();
undoRedoManager.demarcateUOW();
try {
if (vocabulary != null && vocabulary.length() > 0) {
selectedElement.setAttribute(
DeviceRepositorySchemaConstants.VOCABULARY_ATTRIBUTE_NAME,
vocabulary);