changing format and adding commons-lang eventListeners
from byte[] to ByteArray