wcm.addRequestParameter(request, "addressStoreName", PropertyInfo.STRING_CLASS, addressStoreName);
wcm.addRequestParameter(request, "query", PropertyInfo.STRING_CLASS, query);
wcm.addRequestParameter(request, "firstResult", PropertyInfo.INTEGER_CLASS, firstResult);
wcm.addRequestParameter(request, "maxResults", PropertyInfo.INTEGER_CLASS, maxResults);
SEnvelope envelope = wcm.createEnvelopeForCurrentUser(request);
try
{
Vector<Object> results = wcm.sendToCurrentServer(envelope);