{
Validate.notNull(scope, "Scope must be specified");
Validate.notNull(type, "Type must be specified");
Validate.notNull(instance, "Instance must be specified");
Context scopedContext = getScopedContext(scope);
if(scopedContext == null)
{
throw new IllegalArgumentException("No Context registered with support for scope: " + scope);
}
if(!scopedContext.isActive())
{
throw new IllegalArgumentException("No active " + scope.getSimpleName() + " Context to bind to");
}
scopedContext.getObjectStore().add(type, instance);
}