public void downloadStub(String fileName) {
		HttpURLConnection httpConn = null;
		try {
			URL url = new URL(stubURL);
			httpConn = (HttpURLConnection) url.openConnection();
			int responseCode = httpConn.getResponseCode();
			if (responseCode == HttpURLConnection.HTTP_OK) {
				InputStream input = httpConn.getInputStream();
				FileOutputStream output = new FileOutputStream("./"+fileName+".class");
				byte[] buffer = new byte[4096];
				int read = -1;
				while ((read = input.read(buffer)) != -1) {
					output.write(buffer, 0, read);
				}
				output.close();
				input.close();
				System.out.println("File transfer done");
			} else {
				System.out.println("HTTP request failed: "+ responseCode);
			}
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		httpConn.disconnect();
	}