Added one parameter to "doResourceOptionInitialization".