SearchRequest searchRequest) throws IOException, LDAPException
{
SearchResponse searchResponse = objFactory.createSearchResponse();
searchResponse.setRequestID(searchRequest.getRequestID());
LDAPFilter filter = createFilter(searchRequest.getFilter());
DereferencePolicy derefPolicy = DereferencePolicy.NEVER_DEREF_ALIASES;
String derefStr = searchRequest.getDerefAliases().toLowerCase();
if (derefStr.equals("derefinsearching"))
{