added static CPackage::AutoOpen that determins fily type from content