code: public static String generateFilterCondition(String propertyName, String operation, final byte[] value) {
          StringBuilder sb = new StringBuilder();
          Formatter formatter = new Formatter(sb);
          for (byte b : value) {
              formatter.format("%02x", b);
          }
          formatter.flush();
          formatter.close();
  
          return generateFilterCondition(propertyName, operation, sb.toString(), EdmType.BINARY);
      }
docs: Generates a property filter condition string for a <code>byte[]</code> value. Creates a formatted string to use
  in a filter expression that uses the specified operation to compare the property with the value, formatted as a
  binary value, as in the following example:
  <p>
  <code>String condition = generateFilterCondition("ByteArray", QueryComparisons.EQUAL, new byte[] {0x01, 0x0f});</code>
  <p>
  This statement sets <code>condition</code> to the following value:
  <p>
  <code>ByteArray eq X'010f'</code>
  
  @param propertyName
  A <code>String</code> which specifies the name of the property to compare.
  @param operation
  A <code>String</code> which specifies the comparison operator to use.
  @param value
  A <code>byte</code> array which specifies the value to compare with the property.
  @return
  A <code>String</code> which represents the formatted filter condition.