HDocument document =
new HDocument(docId, "message.po", "/po", ContentType.PO,
new HLocale(new LocaleId("en")));
HProjectIteration projectIteration = new HProjectIteration();
HProject project = new HProject();
project.setName(projectName);
projectIteration.setProject(project);
document.setProjectIteration(projectIteration);
textFlow = new HTextFlow(document, resId, "this is a string.");
tmDetail = tmDetail(projectName, docId, resId, msgContext);