class MembersTemplate extends AbstractGithubTemplate implements MembersOperations {

	@Override
	public boolean isMemberOfOrganization(String organization, String username) {
		Map<String, Object> uriVariables = new HashMap<>();
		uriVariables.put("organization", organization);
		uriVariables.put("username", username);

		HttpStatus status = HttpStatus.NOT_FOUND;
		try {

			ResponseEntity<Void> responseEntity = getRestOperations()
					.getForEntity(buildUri("/orgs/{organization}/members/{username}", uriVariables), Void.class);
			status = responseEntity.getStatusCode();
		} catch (HttpClientErrorException e) {
			// skip
		}
		return HttpStatus.NO_CONTENT.equals(status) ? true : false;
	}

	public  MembersTemplate(RestOperations restOperations, GithubApiUriUtil uriUtil);
	public  MembersTemplate(RestOperations restOperations);

}