LEADResourceType leadResourceType = leadResourceDoc.getLEADresource();
DataType data = leadResourceType.getData();
IdinfoBase idInfo = data.getIdinfo();
KeywordsType keywords = idInfo.getKeywords();
ThemeType leadProjectThema = keywords.getThemeArray(0);
// This will get "leadproject.org";
leadProjectThema.addThemekey("workflow");
leadProjectThema.addThemekey("workflow-ODE");
leadProjectThema.addThemekey("workflow-ODE-Process");
// Set workflow ID.
ThemeType idThema = keywords.addNewTheme();
idThema.setThemekt(WORKFLOW_TEMPLATE_ID_THEMEKT);
idThema.addThemekey(templateID.toString());
XMLUtil.validate(leadResourceDoc);
} catch (XmlException e) {
// TODO Auto-generated catch block
e.printStackTrace();