protected Response responseForByteVariable(TypedValue variableInstance) {
    byte[] valueBytes = (byte[]) variableInstance.getValue();
    if (valueBytes == null) {
      valueBytes = new byte[0];
    }
    return Response.ok(new ByteArrayInputStream(valueBytes), MediaType.APPLICATION_OCTET_STREAM).build();
  }
protected Response responseForByteVariable ( TypedValue variableInstance ) { byte [ ] valueBytes = ( byte [ ] ) variableInstance . getValue ( ) ; if ( valueBytes == null ) { valueBytes = new byte [ 0 ] ; } return Response . ok ( new ByteArrayInputStream ( valueBytes ) , MediaType . APPLICATION_OCTET_STREAM ) . build ( ) ; }
Creates a response for a variable of type {@link ValueType#BYTES}.