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;
import com.messagebird.objects.PhoneNumberFeature;
import com.messagebird.objects.PhoneNumberType;
import com.messagebird.objects.PurchasedNumbersFilter;

public class ExampleViewPurchasedNumber {
    public static void main(String[] args) {
        if (args.length < 2) {
            System.out.println("Please specify your access key and phone number.");
            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.viewPurchasedNumber(args[1]));
            return;
        } catch (UnauthorizedException | NotFoundException | GeneralException exception) {
            if (exception.getErrors() != null) {
                System.out.println(exception.getErrors().toString());
            }
            exception.printStackTrace();
        }
    }
}
@@ -290,162 +290,8 @@
 ion;
-%0Aimport com.messagebird.objects.PhoneNumberFeature;%0Aimport com.messagebird.objects.PhoneNumberType;%0Aimport com.messagebird.objects.PurchasedNumbersFilter;
 %0A%0Apu

remove unused imports