Bug 868: Replaced use of toInstance() for build().