} else {
opType = responseMessage.getProtocolOpType();
if (opType == LDAPConstants.OP_TYPE_SEARCH_RESULT_ENTRY) {
SearchResultEntryProtocolOp searchEntryOp =
responseMessage.getSearchResultEntryProtocolOp();
SearchResultEntry entry = searchEntryOp.toSearchResultEntry();
entries.add(entry);
}
}
}
while (opType != LDAPConstants.OP_TYPE_SEARCH_RESULT_DONE);