String[] attributes = new String[pAttributes.size()];
for (int i=0, size=pAttributes.size(); i<size; i++) {
attributes[i] = ((TextData)pAttributes.get(i)).toString();
}
LDAPSearchResults results = null;
try {
results = this.connection.search(pBase.toString(),scope,filter.toString(),attributes,pTypesOnly,constraints);
} catch (LDAPException e) {
throw e;
}