if (idents == null || idents.isEmpty()) {
retval = Collections.emptyList();
} else {
retval = new ArrayList<Ident>(idents.size());
for (IdentType ident : idents) {
Ident obj = new IdentImpl(ident);
retval.add(obj);
}
retval = Collections.unmodifiableList(retval);
}
return retval;