code: 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;
  	}
      }
docs: return if the PageSource represent a template (no component,no interface)
  
  @param pc
  @param ps
  @return
  @throws PageException