public static boolean isTemplate(PageContext pc, PageSource ps, boolean defaultValue) {
	try {
	    return !(ps.loadPage(pc, false) instanceof CIPage);
	}
	catch (PageException e) {
	    SystemOut.printDate(e);
	    return defaultValue;
	}
    }
public static boolean isTemplate ( PageContext pc , PageSource ps , boolean defaultValue ) { try { return ! ( ps . loadPage ( pc , false ) instanceof CIPage ) ; } catch ( PageException e ) { SystemOut . printDate ( e ) ; return defaultValue ; } }
return if the PageSource represent a template (no component,no interface)

@param pc
@param ps
@return
@throws PageException