public <T> ApruveResponse<List<T>> index(String path,
			GenericType<List<T>> resultType) {
		Response response = restRequest(path).get();
		List<T> responseObject = null;
		ApruveResponse<List<T>> result;
		if (response.getStatusInfo().getFamily() == Family.SUCCESSFUL) {
			responseObject = response.readEntity(resultType);
			result = new ApruveResponse<List<T>>(response.getStatus(),
					responseObject);
		} else {
			result = new ApruveResponse<List<T>>(response.getStatus(), null,
					response.readEntity(String.class));
		}
		return result;
	}
public < T > ApruveResponse < List < T > > index ( String path , GenericType < List < T > > resultType ) { Response response = restRequest ( path ) . get ( ) ; List < T > responseObject = null ; ApruveResponse < List < T > > result ; if ( response . getStatusInfo ( ) . getFamily ( ) == Family . SUCCESSFUL ) { responseObject = response . readEntity ( resultType ) ; result = new ApruveResponse < List < T > > ( response . getStatus ( ) , responseObject ) ; } else { result = new ApruveResponse < List < T > > ( response . getStatus ( ) , null , response . readEntity ( String . class ) ) ; } return result ; }
is kind of a pain, and it duplicates processResponse.