FOFPlatformInterface::getDocument

Returns the JDocument object which handles this component's response. You may also return null and FOF will a. try to figure out the output type by examining the "format" input parameter (or fall back to "html") and b.

FOF will not attempt to load CSS and Javascript files (as it doesn't make sense if there's no JDocument to handle them).