code: public static byte reverseBitsInByte(final JBBPBitNumber bitNumber, final byte value) {
      final byte reversed = reverseBitsInByte(value);
      return (byte) ((reversed >>> (8 - bitNumber.getBitNumber())) & bitNumber.getMask());
    }
docs: Reverse lower part of a byte defined by bits number constant.
  
  @param bitNumber number of lowest bits to be reversed, must not be null
  @param value     a byte to be processed
  @return value contains reversed number of lowest bits of the byte