private void demo() {
		String protocol = "http://";
		String port = ":5910";
		String hostname="";
		
		try {
			hostname = InetAddress.getLocalHost().getHostAddress();
			
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		if(hostname.equals("127.0.0.1"))
			hostname = "localhost";
		
		String baseUrl = protocol + hostname + port;

			
		String options = "\n-------------------------------------------------------------------\n" +
				"*. CRUD operations provided by the service ! \n" +
				"\t1. GET /user/ should return the user with a specific ID \n" +
				"\t2. POST /User/ should create a new user  \n" +
				"\t3. DELETE /Tasks/{userId}/{taskId} should delet the task  with ID {taskId}  for user with ID {userId} \n" +
				"\t4. POST Tasks/  The user with id user_id add task \n" +
				"\t5. Send   Tasks/Reminder/User/{user_id}  sending reminder for users about the tasks of the day \n" +
				"\t6. Send   Tasks/Reminder/Caregiver/{cg_id}  sending reminder for users about the tasks of the day \n" +
				"0. exit ^_^";
	
		
		ClientConfig config = new DefaultClientConfig();
        Client client = Client.create(config);
        WebResource resource = client.resource(baseUrl);


        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String url;
        int selected = 100;
        try {
            Scanner scanner = new Scanner(System.in);
        	while (selected !=0){

        		String firstname,lastname,gender,email, birthdate;
        		int user_id;
        		
        		switch (selected) {
        			case	1:
        					System.out.print("Enter the user id : ");
        					user_id = Integer.parseInt(br.readLine().toString().trim());
        					url = baseUrl + "/user/"+user_id;
				
        					resource = client.resource(url);
        					getUserbyId(resource);
				break;
        			case	2:			
							url = baseUrl + "/user";
				
							System.out.println("Enter the user firstname ");
							firstname=br.readLine();
       	    	
							System.out.println("Enter the user lastname  ");
							lastname=br.readLine();
                    
							System.out.println("Enter the user birthdate");
							birthdate=br.readLine();
                    
							System.out.println("Enter the user email ");
							email=br.readLine();
                 
							System.out.println("Enter the user gender (Male/Female) ");
							gender=br.readLine();
       	    	 
							
							resource = client.resource(url);
							System.out.println(resource);
				            addUser(resource, firstname, lastname, gender, email, birthdate);
				
				
							break;
        		}
        		if(selected!=0)
        			System.out.println(options);
				System.out.println("Choose the number: ");
				selected = Integer.parseInt(scanner.next().toString());
        			}
    			br.close();
    		} 
        	catch (Exception e) {
    				System.err.println("Something went wrong. Check the URI and Parameters !");
    				e.printStackTrace();
    			}
    		
    	}