shouldn't this getGlobalInstance() call be done once only in an idempotent way ?