Add a method which calls commons io.