int position = 0;
List<Object> npOrVERBOrADJOrADVOrPREPOrLEX = verbnetInfo.frame
.getSYNTAX().getNPOrVERBOrADJOrADVOrPREPOrLEX();
for (final Object object : npOrVERBOrADJOrADVOrPREPOrLEX) {
if (object instanceof NP) {
NP np = (NP) object;
FrameItem frameItem = searchFrame.components.get(position);
frameItem.pos.thematicRole = ThematicRoles.valueOf(np
.getValue().toUpperCase());
}
if (object instanceof VERB) {
FrameItem frameItem = searchFrame.components.get(position);
System.out.println("Verb : " + frameItem.pos.text);