if (keyKindDetails != null) {
String s = details.get(obj);
if (s != null
&& s.toLowerCase().startsWith(
contents.toLowerCase())) {
BasicContentProposal p = new BasicContentProposal(
s, s, null, s.length(), obj);
sa.add(p);
} else {
s = getObjectText(obj);
if (s.toLowerCase().startsWith(
contents.toLowerCase())) {
BasicContentProposal p = new BasicContentProposal(
s, s, null, s.length(), obj);
sa.add(p);
}
}
}
} else {
String s = getObjectText(obj);
if (s.toLowerCase().startsWith(
contents.toLowerCase())) {
BasicContentProposal p = new BasicContentProposal(
s, s, null, s.length(), obj);
sa.add(p);
}
}
}