public static String genericSyncAPICall(String region, String service, String operation, Object[] args)
	{
		//Retrieve a PvP.net client from the region.
		LoLRTMPSClient client;
		try
		{
			client = LoadBalancer.returnClient(region);
		} 
		catch (NullClientForRegionException e1) 
		{
			return "Connection to " + e1.getRegion() + " failed. This may be because that region does not exist, or the administrator of this server " +
					" does not have it configured to that region, or because that region is currently offline.";
		}
		//Retrieves the data and formats it into JSON
		try 
		{
			//JSON must start with a {
			String json = "{";
			
			//Retrieve the data from Riot
			int id = client.invoke(service, operation, args);
			TypedObject data = client.getResult(id);
			
			//Iterate through the data and add it to the JSON string
			for(String x : data.keySet())
			{
				json = addObject(json, data, x);
			}
			
			//Remove the last character from the string, would be an improper ,
			json = json.substring(0,json.length()-1);
			json += "}";
			return json;
		}
		catch (IOException e) 
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}