container.getClients().add(Protocol.FILE);
   public static void main(String[] args) throws Exception   {		// Create a container		Container container = new Container();		container.getServers().add(Protocol.HTTP, 8182);		// Create an application		Application application = new Application(container)		{			public Restlet createRoot()			{		      // Create a root Router		      Router router = new Router(getContext());				      // Attach a guard Filter to secure access to the chained directory handler		      GuardFilter guard = new GuardFilter(getContext(), true, ChallengeScheme.HTTP_BASIC , "Restlet tutorial", true);		      guard.getAuthorizations().put("scott", "tiger");		      router.getScorers().add("/docs/", guard);				      // Create a directory handler able to return a deep hierarchy of Web files		      DirectoryHandler directory = new DirectoryHandler(getContext(), ROOT_URI, "index.html");		      guard.setNext(directory);				      // Create the user router		      Router user = new Router(getContext());		      router.attach("/users/[a-z]+", user);				      // Create the account Restlet		      Restlet account = new Restlet()		         {		      		public void handle(Request request, Response response)		            {		               // Print the requested URI path		               String message = "Account of user named: " + request.getBaseRef().getLastSegment();		               response.setEntity(message, MediaType.TEXT_PLAIN);		            }		         };		      user.attach("$", account);				      // Create the orders Restlet		      Restlet orders = new Restlet(getContext())		         {		            public void handle(Request request, Response response)		            {		               // Print the user name of the requested orders		               List<String> segments = request.getBaseRef().getSegments();		               String message = "Orders of user named: " + segments.get(segments.size() - 2);		               response.setEntity(message, MediaType.TEXT_PLAIN);		            }		         };		      user.attach("/orders$", orders);		      		      // Return the root router		      return router;			}		};		// Attach the application to the container and start it		container.getDefaultHost().attach("", application);		container.start();   }