using arrays indexOf from Appache common