CMS-3973 Create resolve function for scripting environment.