* @param groupId contact group ID
* @return contact summary view objects
*/
@SuppressWarnings("unchecked")
public List<ContactSummaryView> getContactViewsByGroup(String groupId) {
ContactGroup cg = getContactGroup(groupId);
List<ContactSummaryView> result = new ArrayList<ContactSummaryView>();
Query q = persistenceManager.newQuery(Contact.class);
q.setFilter("groups.contains(:groupId)");
q.setResult("mainContactId, firstName, lastName, title, suffix, gender");
Collection<Object[]> summaries = (Collection<Object[]>)q.execute(cg.getGroupId());
for (Object[] summary : summaries) {
ContactSummaryView co = new ContactSummaryView();
co.setIdentifier(KeyFactory.keyToString((Key)summary[0]));
co.setFirstName((String)summary[1]);