Util method since java can't make use of default params.

Can't compile the project with SBT atm :/, but this should be simple enough...