private void convertAndFillByteBufferListToByteArrayList(List<byte[]> dictionaryValues,List<ByteBuffer> dictionaryValueBufferList){
  for (  ByteBuffer buffer : dictionaryValueBufferList) {
    int length=buffer.limit();
    byte[] value=new byte[length];
    buffer.get(value,0,value.length);
    dictionaryValues.add(value);
  }
}

private void convertAndFillByteBufferListToByteArrayList ( List < byte [ ] > dictionaryValues , List < ByteBuffer > dictionaryValueBufferList ) { for ( ByteBuffer buffer : dictionaryValueBufferList ) { int length = buffer . limit ( ) ; byte [ ] value = new byte [ length ] ; buffer . get ( value , 0 , value . length ) ; dictionaryValues . add ( value ) ; } }
this method will convert and fill list of byte buffer to list of byte array
