if (ps == null)
return null;
PersonInfo[] info = new PersonInfo[ps.size()];
for (int i = 0; i < ps.size(); i++) {
Person p = ps.get(i);
info[i] = new PersonInfo();
info[i].setName(p.getName());
if (p.getContacts() != null && p.getContacts().size() > 0)
info[i].setContact(p.getContacts().get(i).getContent());
}
return info;