ConfigWebImpl config=(ConfigWebImpl) pc.getConfig();
PageSource ps = isWeb?
config.getTagMapping().getPageSource(filename):
config.getServerTagMapping().getPageSource(filename);
Page p = ps.loadPage(pc);
ComponentImpl c = ComponentLoader.loadComponent(pc, p, ps, filename, true,true);
ComponentWrap cw = ComponentWrap.toComponentWrap(Component.ACCESS_PRIVATE,c);
Struct meta = Caster.toStruct( cw.get(KeyConstants._metadata,null),null);
// TODO handle all metadata here and make checking at runtime useless