@Override
	public void init(ServletConfig config) throws UnavailableException {
		super.init(config);
		for (ManagedMethodSPI method : container.getManagedMethods()) {
			if (Types.isKindOf(method.getReturnType(), Resource.class)) {
				resourceMethods.put(key(method), method);
			}
		}
	}
@Override
	public void init(ServletConfig config) throws UnavailableException {
		super.init(config);
		for (ManagedMethodSPI method : container.getManagedMethods()) {
			if (Types.isKindOf(method.getReturnType(), Resource.class)) {
				resourceMethods.put(key(method), method);
			}
		}
	}
@ Override public void init ( ServletConfig config ) throws UnavailableException { super . init ( config ) ; for ( ManagedMethodSPI method : container . getManagedMethods ( ) ) { if ( Types . isKindOf ( method . getReturnType ( ) , Resource . class ) ) { resourceMethods . put ( key ( method ) , method ) ; } } }
Beside initialization performed by {@link AppServlet#init(ServletConfig)} this method takes care to load resource methods
cache. A resource method is a remotely accessible method that returns a {@link Resource}. Map storage key is generated by
{@link #key(ManagedMethodSPI)} based on controller and resource method request paths and is paired with retrieval key -
{@link #key(String)}, generated from request path when method invocation occurs.

@param config servlet configuration object.
@throws UnavailableException if tiny container is not properly initialized.
Beside initialization performed by { @link AppServlet#init ( ServletConfig ) } this method takes care to load resource methods cache . A resource method is a remotely accessible method that returns a { @link Resource } . Map storage key is generated by { @link #key ( ManagedMethodSPI ) } based on controller and resource method request paths and is paired with retrieval key - { @link #key ( String ) } generated from request path when method invocation occurs .