src/main/java/com/github/ddth/cql/SessionManager.java
public Session getSession(String hostsAndPorts, String username, String password,
            String keyspace, boolean forceNew) {
        return getSession(
                SessionIdentifier.getInstance(hostsAndPorts, username, password, keyspace),
                forceNew);
    }
public Session getSession(String hostsAndPorts, String username, String password,
            String keyspace, boolean forceNew) {
        return getSession(
                SessionIdentifier.getInstance(hostsAndPorts, username, password, keyspace),
                forceNew);
    }
Obtain a Cassandra session instance.

@param hostsAndPorts
@param username
@param password
@param keyspace
@param forceNew
force create new session instance (the existing one, if any,
will be closed)
@return
@throws NoHostAvailableException
@throws AuthenticationException
@since 0.2.2