@SuppressWarnings("restriction")
private String getSectionTitleTextFromSection() {
for (Object obj : section.getSUBJECTOrAUTHOrAPPRO()) {
if (obj instanceof SUBJECT) {
final SUBJECT subject = (SUBJECT) obj;
CfrContentContainer content = new CfrContentContainer();
content.addContentList(subject.getContent());
return content.getContentText();
}
}
for (Object obj : section.getSUBJECTOrAUTHOrAPPRO()) {
if (obj instanceof JAXBElement) {
final JAXBElement jaxb = (JAXBElement) obj;
if (StringUtils.equals("RESERVED", jaxb.getName().getLocalPart())) {
CfrContentContainer content = new CfrContentContainer();
content.addContent(jaxb.getValue().toString());
return content.getContentText();
}
}
}
for (Object obj : section.getSUBJECTOrAUTHOrAPPRO()) {
if (obj instanceof String) {
CfrContentContainer content = new CfrContentContainer();
content.addContent((String) obj);
return content.getContentText();
}
}
return null;
}