return create_session(location, new HashMap<String, String>());
}
public OpenTokSession create_session(final String location, final Map<String, String> params) throws OpenTokException {
params.put("location", location);
final TokBoxXML xmlResponse = this.do_request("/session/create", params);
if(xmlResponse.hasElement("error", "Errors")) {
throw new OpenTokException("Unable to create session");
}
final String session_id = xmlResponse.getElementValue("session_id", "Session");
return new OpenTokSession(session_id);
}