if (indata.indexOf("<html ") != -1) {
// if title="Artifactory" then it is an Artifactory repo...
if (indata.indexOf("title=\"Artifactory\"") != -1) {
logger.debug("is Artifactory repository");
parser = new ArtifactoryRemoteRepositoryParser(remotePath, localUrl, id, baseUrl);
}
else {
logger.debug("is html repository");
parser = new HtmlRemoteRepositoryParser(remotePath, localUrl, id, baseUrl);
}