public static void sellStock(String uid, String id, int amount) {
    	
    	/* May be add IF loop here with canSell to handle the condition here */
        int currAmount = stocks.get(id);
        UserStorageAccess xmlAccessor = new UserStorageAccess();
        
        Stock currentStock = StockControl.queryStock(id);
        System.out.println(currentStock);
        
        
        if (currAmount == amount) {
            stocks.remove(id);
        } else {
            stocks.put(id, currAmount - amount);
        }
        
        try {
			xmlAccessor.removeStock(uid,currentStock.getPrice()*amount,stocks);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    }