That's pretty lame of getBaseFIle to do but given that such is the case, I agree that this is probably sufficient.