Instead of passing in a bunch of nulls, how about you overload the releaseDatabaseResource method to only take one parameter?