route.extractQuery("terms", "q", true);
route.extractQuery("keywords", "q", true);
    public static void main(String[] args) throws Exception {        // Create a component        Component component = new Component();        component.getServers().add(Protocol.HTTP, 8182);        // Create an application        Application application = new Application(component) {            @Override            public Restlet createRoot() {                // Create a Redirector to Google search service                String target = "http://www.google.com/search?q=site:mysite.org+{terms}";                return new Redirector(getContext(), target,                        Redirector.MODE_CLIENT_TEMPORARY);            }        };        // Attach the application to the component's default host        Route route = component.getDefaultHost().attach("/search", application);        // While routing requests to the application, extract a query parameter        route.extractQuery("terms", "q", true);        // Start the component        component.start();    }