if (next.hasProperty("jcr:mimeType"))
{
mimeType = next.getProperty("jcr:mimeType").getString();
}
is = next.getProperty("jcr:data").getStream();
StandaloneContainer scontainer = StandaloneContainer.getInstance();
DocumentReaderService service_ =
(DocumentReaderService)scontainer.getComponentInstanceOfType(DocumentReaderService.class);
assertNotNull("Can not create service_ a for indexing", world);
String found_text = service_.getContentAsText(mimeType, is);
assertNotNull("Can not create found_text for indexing", world);
is.close();
System.out.println("------------------ SEARCH TEXT RESULTS START-----------------------");