}
private void uploadTags(String runId) throws IOException, ClassNotFoundException {
File file = new File(Config.OUT_DIR + runId + "/META-INF/tags");
String tags = FileHelper.readContentFromFile(file);
TagEngine te = TagEngine.getInstance();
String[] tagsArray;
if (tags != null && !"".equals(tags)) {
StringTokenizer tok = new StringTokenizer(tags," ");
tagsArray = new String[tok.countTokens()];
int count = tok.countTokens();
int i=0;
while(i < count){
String nextT = tok.nextToken().trim();
tagsArray[i] = nextT;
i++;
}
te.add(runId, tagsArray);
}
te.save();
}