handleError(response);
String responseContent = getContent(response);
RestActivity restActivity = SocialJSONDecodingSupport.parser(RestActivity.class, responseContent);
return restActivity;
} catch (SocialHttpClientException e) {
throw new ServiceException(ActivityServiceImplV1Alpha1.class,e.getMessage(),null);
} catch (ParseException e) {
throw new ServiceException(ActivityServiceImplV1Alpha1.class,e.getMessage(),null);
} catch (SocialClientLibException e) {
if(e.getCause() instanceof NotFoundException){
throw new ServiceException(ActivityServiceImplV1Alpha1.class,e.getMessage(),null);
} else {
throw e;
}
}
}