fixed a compilation error, updated APIs from commons to latest version