Removed groovy usage for private constructor access.