static boolean extractReferencesNaively(JCas jCas) { // match potential sections List<Section> sections = newArrayList(); Matcher m = REFERENCES.matcher(jCas.getDocumentText()); while (m.find()) { Section section = new Section(jCas, m.start(), m.end()); section.setSectionType(BlueUima.SECTION_TYPE_REFERENCES); sections.add(section); } if (sections.size() == 1) { sections.get(0).addToIndexes(); return true; } return false; }