private String getRIQueryURL(Map<String, String> params) throws IOException { if (params.get("type") == null) { throw new IOException("'type' parameter is required"); } if (params.get("lang") == null) { throw new IOException("'lang' parameter is required"); } if (params.get("query") == null) { throw new IOException("'query' parameter is required"); } if (params.get("format") == null) { throw new IOException("'format' parameter is required"); } return m_baseURL + "risearch?" + encodeParameters(params); }