private int getResultSize() {
		try {
			Connection con = new StageConnectionManager().getTargetConnection();
			try {
				Statement stmt = con.createStatement();
				try {
					ResultSet res = stmt.executeQuery(getResultCount);
					try {
						if (res.next()) {
							// Get total number of records to be tested
							int size = res.getInt(1);
							return size;
						} else {
							return -1;
						}
					} catch (SQLException e) {
						System.err.println("Failed to fetch result from "
								+ "ResultSet of query: " + getResultCount);
						e.printStackTrace();
						return -1;
					}
				} catch (SQLException e) {
					System.err.println("Failed to execute query: "
							+ getResultCount);
					e.printStackTrace();
					return -1;
				}
			} catch (SQLException e) {
				System.err.println("Failed to create Statement from target "
						+ "database connection");
				e.printStackTrace();
				return -1;
			} finally {
				con.close();
			}
		} catch (SQLException e) {
			System.err.println("Failed to connect to target database");
			e.printStackTrace();
			return -1;
		}
	}