// We use version 2 of the REST API, that first appeared in JIRA 5
// Check if version 2 of the REST API is supported
// http://docs.atlassian.com/jira/REST/5.0/
// Note that serverInfo can always be accessed without authentication
client.replacePath( "/rest/api/2/serverInfo" );
client.accept( MediaType.APPLICATION_JSON );
Response siResponse = client.get();
if ( siResponse.getStatus() != Response.Status.OK.getStatusCode() )
{
throw new NoRest(