public static void ThrowIfNull(object o, object id, System.Type clazz) { if (o == null) { throw new UnresolvableObjectException(id, clazz); } }