}
});
registry.register(SEARCH_CMD, new CommandHandler() {
public void handleCommand(Command command, List response) {
PresentationModel searchCriteria = modelStore.findPresentationModelById(SEARCH_CRITERIA);
if (searchCriteria == null) {
throw new IllegalStateException("No search criteria known on the server!");
}
Attribute attribute = searchCriteria.findAttributeByPropertyName(NAME);
Object value = (attribute == null) ? null : attribute.getValue();
String contactName = (value == null) ? "" : value.toString();
for (int i = 0; i < 10; i++) {
String id = contactName + " contact " + i;