sr.setContentType(ContentType.TextPlain);
sr.setLang(LocaleId.EN_US);
sr.setType(ResourceType.FILE);
sr.getExtensions(true);
TextFlow stf = new TextFlow("tf1", LocaleId.EN_US, "tf1");
stf.getExtensions(true);
TextFlow stf2 = new TextFlow("tf2", LocaleId.EN_US, "testtf2");
// stf2.getExtensions(true);
sr.getTextFlows().add(stf);
sr.getTextFlows().add(stf2);
return sr;
}