code: public Cassandra.Client getCassandra(String keyspaceNameArg) {
      getCassandra();
      if ( keyspaceNameArg != null && !StringUtils.equals(keyspaceName, keyspaceNameArg)) {
        if ( log.isDebugEnabled() )
          log.debug("keyspace reseting from {} to {}", keyspaceName, keyspaceNameArg);
        try {
          cassandraClient.set_keyspace(keyspaceNameArg);
        } catch (InvalidRequestException ire) {
          throw new HInvalidRequestException(ire);
        } catch (TException e) {
      	throw exceptionsTranslator.translate(e);
        }
        keyspaceName = keyspaceNameArg;
      }
      return cassandraClient;
    }
docs: {@inheritDoc}