init method for NullObjectResolver