@Override
public void generate() throws IOException, SAXException, ProcessingException {
Request request = ObjectModelHelper.getRequest(objectModel);
String vocabularyIdentifier = request.getParameter("vocabularyIdentifier");
try {
ControlledVocabulary controlledVocabulary = ControlledVocabulary.loadVocabulary(vocabularyIdentifier);
if(controlledVocabulary != null){
Gson gson = new Gson();
String jsonString = gson.toJson(controlledVocabulary);
ByteArrayInputStream inputStream = new ByteArrayInputStream(jsonString.getBytes("UTF-8"));