added:
 * "best practice" from apache commons-oio