myContainer.start();
container.start();
   public static void main(String[] args)   {      try      {         // Create a new Restlet container      	Container myContainer = new Container();         Context myContext = myContainer.getContext();                  // Create the HTTP server connector, then add it as a server         // connector to the Restlet container. Note that the container         // is the call restlet.         myContainer.getServers().add(Protocol.HTTP, 9876);         // Prepare and attach a test Restlet         Restlet testRestlet = new Restlet(myContext)         {            public void handlePut(Request request, Response response)            {               System.out.println("Handling the call...");               System.out.println("Trying to get the input as a form...");               Form form = request.getEntityAsForm();               System.out.println("Trying to getParameters...");               StringBuffer sb = new StringBuffer("foo");               for(Parameter p : form)               {                  System.out.println(p);                  sb.append("field name = ");                  sb.append(p.getName());                  sb.append("value = ");                  sb.append(p.getValue());                  sb.append("\n");                  System.out.println(sb.toString());               }               response.setEntity(sb.toString(), MediaType.TEXT_PLAIN);            }         };         myContainer.getDefaultHost().attach("/test", testRestlet);         // Now, start the container         myContainer.start();      }      catch(Exception e)      {         e.printStackTrace();      }   }