If someone is looking for an answer
Guia g = new Guia();
GuiaParticipante gp = new GuiaParticipante(1);
g.setTbGuiaParticipanteCollection(Collections.singletonList(gp));
String name = "tbGuiaParticipanteCollection[0].codParticipante";
Resolver resolver = new DefaultResolver();
if (resolver.isIndexed(name)) {
String property = resolver.getProperty(name);
if (PropertyUtils.getProperty(g, property) != null) {
String cod = BeanUtils.getNestedProperty(g, name);
System.out.println(cod);
}
}
source
share