import com.messagebird.MessageBirdClient;
import com.messagebird.MessageBirdService;
import com.messagebird.MessageBirdServiceImpl;
import com.messagebird.exceptions.GeneralException;
import com.messagebird.exceptions.NotFoundException;
import com.messagebird.exceptions.UnauthorizedException;

public class ExampleListNumbersForPurchase {
    public static void main(String[] args) {
        if (args.length < 1) {
            System.out.println("Please specify your access key.");
            return;
        }
        // First create your service object
        final MessageBirdService wsr = new MessageBirdServiceImpl(args[0], "https://numbers.messagebird.com");

        // Add the service to the client
        final MessageBirdClient messageBirdClient = new MessageBirdClient(wsr);
        
        try {
            System.out.println(messageBirdClient.listNumbersForPurchase(args[1]));
            return;
        } catch (UnauthorizedException | GeneralException | NotFoundException exception) {
            if (exception.getErrors() != null) {
                System.out.println(exception.getErrors().toString());
            }
            exception.printStackTrace();
        }
    }
}
@@ -286,16 +286,251 @@
 ception;
+%0Aimport com.messagebird.objects.PhoneNumberFeature;%0Aimport com.messagebird.objects.PhoneNumberType;%0Aimport com.messagebird.objects.PhoneNumberSearchPattern;%0Aimport com.messagebird.objects.PhoneNumbersLookup;%0A%0Aimport java.util.EnumSet;;
 %0A%0Apublic
@@ -862,43 +862,8 @@
 s%5B0%5D
-, %22https://numbers.messagebird.com%22
 );%0A%0A
@@ -1022,98 +1022,960 @@
     
-System.out.println(messageBirdClient.listNumbersForPurchase(args%5B1%5D));%0A            return;
+if (args%5B1%5D.equalsIgnoreCase(%22--params%22)) %7B%0A                PhoneNumbersLookup options = new PhoneNumbersLookup();%0A                options.setFeatures(EnumSet.of(PhoneNumberFeature.VOICE, PhoneNumberFeature.SMS));%0A                options.setType(PhoneNumberType.MOBILE);%0A                options.setLimit(10);%0A                options.setNumber(562);%0A                options.setSearchPattern(PhoneNumberSearchPattern.START);%0A                System.out.print(options.toString());%0A                try %7B%0A                    System.out.println(String.format(%22Request Made With Params: %25s%22, messageBirdClient.listNumbersForPurchase(%22US%22, options)));%0A                %7D catch (IllegalAccessException exception) %7B%0A                    System.out.println(exception.toString());%0A                %7D%0A            %7D else %7B%0A                System.out.println(String.format(%22Request Made Without Params: %25s%22, messageBirdClient.listNumbersForPurchase(%22NL%22)));%0A            %7D
 %0A   
@@ -2107,25 +2107,24 @@
  != null) %7B%0A
- 
             

clean up example