LDAPLookupRequest req = new LDAPLookupRequest();
LDAPLookupRequest request = null; LDAPRequestFormat aFormat = (LDAPRequestFormat) FormatElement.readObject("anLdapReqFmt"); request = aFormat.format(opContext);
The actual work of creating the model and populating it with data is done using an LDAP request formatter. This is a toolkit formatter element that can read an external definition of a LDAP request, and create a request model from the definitions. It is implemented in the com.ibm.btt.services..ldap.LDAPRequestFormat class.
In the above example, 'anLdapReqFmt' is the name of an appropriately defined LDAP request format, and opContext is the context of the operation using the LDAP Access Service. See LDAP service definitions for more details on defining an LDAP request format.