*/
public class ServerConfigFactoryImpl extends ServerConfigFactory
{
public ServerConfig getServerConfig()
{
ServerConfig serverConfig = new KernelAwareSPIFactory().getKernelProvidedSPI(ServerConfig.BEAN_NAME, ServerConfig.class);
if (serverConfig == null)
throw new IllegalStateException("Cannot obtain ServerConfig for bean name: " + ServerConfig.BEAN_NAME);
return serverConfig;
}