if (idx > 0) {
repoBase = repoName.substring(0, idx);
ext = repoName.substring(idx);
}
SerializationType serType = SerializationType.GENERIC;
ArtifactType type = ArtifactType.PRIMARY;
VaultInputSource is = archive.getInputSource(file);
if (ext.equals(".xml")) {
// this can either be an generic exported docview or a 'user-xml' that is imported as file
// btw: this only works for input sources that can refetch their input stream
serType = XmlAnalyzer.analyze(is);