nativeConfig.setAuthEndpoint(userInfo.getServerEndpoint());
nativeConfig.setUsername(userInfo.getUserName());
nativeConfig.setPassword(userInfo.getPassword());
// Login outside of the ForceServiceConnector
PartnerConnection conn = Connector.newConnection(nativeConfig);
// A session id can represent a username and password
// so this is still a valid config
ForceConnectorConfig config = createConfig();
config.setUsername(null);
config.setPassword(null);
config.setSessionId(conn.getSessionHeader().getSessionId());
ForceServiceConnector connector = new ForceServiceConnector(config);
connector.getConnection();
// Since we don't have a username and password, we can't generate