// select self
sb.append(PersonDb.JPQL_FINDPERSON);
lastPos = JPQLUtils.addInClause(sb, "p", "id", lastPos, paramList.size());
break;
default:
throw new ProtocolException(HttpServletResponse.SC_BAD_REQUEST, "Group ID not recognized");
}
if (GroupId.Type.self.equals(groupId.getType())) {
plist = JPQLUtils.getListQuery(entiyManager, sb.toString(), paramList, collectionOptions);
totalResults = Long.valueOf(1);
if (plist.isEmpty()) {
throw new ProtocolException(HttpServletResponse.SC_BAD_REQUEST, "Person not found");
}
} else {
int filterPos = addFilterClause(sb, PersonDb.getFilterCapability(), collectionOptions,
lastPos);
if (filterPos > 0) {