internal void Validate()
{
if (instance == null && implType == null) {
if (ServiceType.IsAbstract ||
ServiceType.IsInterface)
throw new InvalidOperationException(
String.Format("The type '{0}' is not instantiable and no implementation was specified", ServiceType));
}
}