brapi-java-client/src/main/java/org/brapi/client/v2/BrAPIClient.java
public String selectHeaderAccept(String[] accepts) {
		if (accepts.length == 0) {
			return null;
		}
		for (String accept : accepts) {
			if (isJsonMime(accept)) {
				return accept;
			}
		}
		return String.join(",", accepts);
	}
/**
	 * Select the Accept header's value from the given accepts array: if JSON exists
	 * in the given array, use it; otherwise use all of them (joining into a string)
	 *
	 * @param accepts The accepts array to select from
	 * @return The Accept header to use. If the given array is empty, null will be
	 *         returned (not to set the Accept header explicitly).
	 */
Select the Accept header's value from the given accepts array: if JSON exists
in the given array, use it; otherwise use all of them (joining into a string)

@param accepts The accepts array to select from
@return The Accept header to use. If the given array is empty, null will be
returned (not to set the Accept header explicitly).
Select the Accept header ' s value from the given accepts array : if JSON exists in the given array use it ; otherwise use all of them ( joining into a string ) @param accepts The accepts array to select from @return The Accept header to use . If the given array is empty null will be returned ( not to set the Accept header explicitly ) .
public String selectHeaderAccept(String[] accepts) {
		if (accepts.length == 0) {
			return null;
		}
		for (String accept : accepts) {
			if (isJsonMime(accept)) {
				return accept;
			}
		}
		return String.join(",", accepts);
	}
public String selectHeaderAccept ( String [ ] accepts ) { if ( accepts . length == 0 ) { return null ; } for ( String accept : accepts ) { if ( isJsonMime ( accept ) ) { return accept ; } } return String . join ( "," , accepts ) ; }
Select the Accept header's value from the given accepts array: if JSON exists
 in the given array, use it; otherwise use all of them (joining into a string)
Select the Accept header ' s value from the given accepts array : if JSON exists in the given array use it ; otherwise use all of them ( joining into a string )