public class MicroformatsProcessor implements AlchemyOutputProcessor {
public void process(JCas cas, Results results) throws Exception {
for (Microformat microformat : ((MicroformatsResults) results).getMicroformats()) {
MicroformatFS microformatFS = new MicroformatFS(cas);
Type type = microformatFS.getType();
microformatFS.setFeatureValueFromString(type.getFeatureByBaseName("fieldName"), microformat
.getFieldName());
microformatFS.setFeatureValueFromString(type.getFeatureByBaseName("fieldData"), microformat
.getFieldData());
microformatFS.addToIndexes();
}
}