public GetSampleImage_Result getSampleImage(GetSampleImage_Params params) {
		GetSampleImage_Result gsir = new GetSampleImage_Result();
		List<Batch> batches = null;
		URL imageUrl = null;
		db = new Database();
		try {
			db.startTransaction();
			batches = db.getBatchDB().getAll();
			db.endTransaction(true);
		} catch (ServerException | SQLException e) {
			e.printStackTrace();
		}
		if (isValidUser) {
			for (int i = 0; i < batches.size(); i++) {
				if (batches.get(i).getProjectId() == params.getProjectID()) {
//					System.out.println("HERE at line 126");
					try {
						imageUrl = new URL(params.getUrlPrefix()  + batches.get(i).getFile());
					} catch (MalformedURLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					} 
					break;
				} 
			}
			gsir.setImageUrl(imageUrl);
		}
		return gsir;
	}