content.setInlineContent(new StringRepresentation(txt, MediaType.TEXT_PLAIN));
return content;
}
private Generator getGenerator() {
Generator generator = new Generator();
generator.setName(Constants.getName());
generator.setUri(new Reference(Constants.getUrl()));
generator.setVersion(Constants.getVersion());
return generator;
}