src/main/java/js/servlet/AppServlet.java
@Override
	public void init(ServletConfig config) throws UnavailableException {
		container = (ContainerSPI) config.getServletContext().getAttribute(TinyContainer.ATTR_INSTANCE);
		if (container == null) {
			log.fatal("Tiny container instance not properly created, probably misconfigured. Servlet |%s| permanently unvailable.", config.getServletName());
			throw new UnavailableException("Tiny container instance not properly created, probably misconfigured.");
		}

		servletName = Strings.concat(config.getServletContext().getServletContextName(), '#', config.getServletName());
		log.trace("Initialize servlet |%s|.", servletName);
	}
@Override
	public void init(ServletConfig config) throws UnavailableException {
		container = (ContainerSPI) config.getServletContext().getAttribute(TinyContainer.ATTR_INSTANCE);
		if (container == null) {
			log.fatal("Tiny container instance not properly created, probably misconfigured. Servlet |%s| permanently unvailable.", config.getServletName());
			throw new UnavailableException("Tiny container instance not properly created, probably misconfigured.");
		}

		servletName = Strings.concat(config.getServletContext().getServletContextName(), '#', config.getServletName());
		log.trace("Initialize servlet |%s|.", servletName);
	}
@ Override public void init ( ServletConfig config ) throws UnavailableException { container = ( ContainerSPI ) config . getServletContext ( ) . getAttribute ( TinyContainer . ATTR_INSTANCE ) ; if ( container == null ) { log . fatal ( "Tiny container instance not properly created, probably misconfigured. Servlet |%s| permanently unvailable." , config . getServletName ( ) ) ; throw new UnavailableException ( "Tiny container instance not properly created, probably misconfigured." ) ; } servletName = Strings . concat ( config . getServletContext ( ) . getServletContextName ( ) , ' ' , config . getServletName ( ) ) ; log . trace ( "Initialize servlet |%s|." , servletName ) ; }
Servlet life cycle callback executed at this servlet instance initialization. Mainly takes care to initialize parent
container reference. If there is no servlet context attribute with the name {@link TinyContainer#ATTR_INSTANCE} this
initialization fails with servlet permanently unavailable.
<p>
Parent container instance has application life span and its reference is valid for entire life span of this servlet
instance.

@param config servlet configuration object.
@throws UnavailableException if tiny container is not properly initialized.
Servlet life cycle callback executed at this servlet instance initialization . Mainly takes care to initialize parent container reference . If there is no servlet context attribute with the name { @link TinyContainer#ATTR_INSTANCE } this initialization fails with servlet permanently unavailable . <p > Parent container instance has application life span and its reference is valid for entire life span of this servlet instance .