}
if (this.container == null) {
this.container = Container.instance(manager);
}
ContainerState state = container.getState();
if (SHUTDOWN.equals(state)) {
throw BeanManagerLogger.LOG.methodNotAvailableAfterShutdown(methodName);
}
if (state.compareTo(minimalState) < 0) {
throw BeanManagerLogger.LOG.methodNotAvailableDuringInitialization(methodName);
}
}