public static String formQueryString(HashMap<String, Object> queryMap)throws Exception
	{
		StringBuffer queryString = new StringBuffer();
		
		if(queryMap != null && !queryMap.isEmpty())
		{
		
			Iterator<String> keyIterator = queryMap.keySet().iterator();
			
			queryString.append("?");
		
			while(keyIterator.hasNext())
			{
				String key = keyIterator.next();
				
				queryString.append(key).append("=").append(queryMap.get(key).toString());
				if(keyIterator.hasNext())
				{
					queryString.append("&");
				}
			}
			
		}
		
		return queryString.toString();
		
	}