src/main/java/js/core/Factory.java
public static AppFactory getAppFactory() {
		AppFactory appFactory = tls.get();
		if (appFactory == null) {
			throw new BugError("No application factory bound to current thread |%s|. See #bind(AppFactory).", Thread.currentThread());
		}
		return appFactory;
	}
public static AppFactory getAppFactory() {
		AppFactory appFactory = tls.get();
		if (appFactory == null) {
			throw new BugError("No application factory bound to current thread |%s|. See #bind(AppFactory).", Thread.currentThread());
		}
		return appFactory;
	}
public static AppFactory getAppFactory ( ) { AppFactory appFactory = tls . get ( ) ; if ( appFactory == null ) { throw new BugError ( "No application factory bound to current thread |%s|. See #bind(AppFactory)." , Thread . currentThread ( ) ) ; } return appFactory ; }
Helper method to retrieve application factory bound to current thread. Retrieve application factory from current thread
local storage. In order to be successfully this method must be preceded by {@link #bind(AppFactory)} called from current
thread; otherwise bug error is thrown.

@return application factory bound to current thread.
@throws BugError if current thread has no application factory bound.
Helper method to retrieve application factory bound to current thread . Retrieve application factory from current thread local storage . In order to be successfully this method must be preceded by { @link #bind ( AppFactory ) } called from current thread ; otherwise bug error is thrown .