final Resource res = new Resource("new-put-resource");
res.setType(ResourceType.FILE);
res.setContentType(ContentType.TextPlain);
res.setLang(LocaleId.EN_US);
res.setRevision(1);
res.getExtensions(true).add(new PoHeader("This is a PO Header"));
TextFlow tf1 = new TextFlow("tf1", LocaleId.EN_US, "First Text Flow");
tf1.getExtensions(true).add(new SimpleComment("This is one comment"));
res.getTextFlows().add(tf1);