String serverUrl = changeServer(loginResult.getServerUrl(), forceProject.getEndpointServer());
setToolingServerUrl(getToolingServiceEndpoint(serverUrl));
}
} else {
// With a sessionId, use the getUserInfo to obtain the relevant information, then construct the other endpoints
GetUserInfoResult userInfoResult = getPartnerConnection().getUserInfo();
setProfileId(userInfoResult.getProfileId());
setOrgId(userInfoResult.getOrganizationId());
setMetadataServerUrl(getMetadataServiceEndpoint(getPartnerConnection().getConfig().getServiceEndpoint()));
setToolingServerUrl(getToolingServiceEndpoint(getPartnerConnection().getConfig().getServiceEndpoint()));
}
// set for re-login to handle expired connections