private Context<?> _resolveContext(final Class<? extends Annotation> scope) throws IllegalStateException {
Context<?> retVal = null;
Type actuals[] = new Type[1];
actuals[0] = scope;
ParameterizedType findContext = new ParameterizedTypeImpl(Context.class, actuals);
List<ServiceHandle<Context<?>>> contextHandles = Utilities.<List<ServiceHandle<Context<?>>>>cast(
protectedGetAllServiceHandles(findContext));
for (ServiceHandle<Context<?>> contextHandle : contextHandles) {
Context<?> context = contextHandle.getService();