function onError(context, error, element) {
        try {
            if (context.onError) {
                try {
                    context.onError(error, element);
                } catch (e) {
                    system.error(e);
                }
            } else {
                system.error(error);
            }
        } finally {
            endComposition(context, element, true);
        }
    }
The composition module encapsulates all functionality related to visual composition.
@module composition
@requires system
@requires viewLocator
@requires binder
@requires viewEngine
@requires activator
@requires jquery
@requires knockout