class CheckmarxCategoriesToClassificationConverter {

	public SerecoClassification convert(String categories, SerecoClassification classification) {
		if (categories==null || categories.isEmpty()) {
			return classification;
		}

		//Examples:
		//OWASP Top 10 2013;A7-Missing Function Level Access Control,OWASP Top 10 2017;A5-Broken Access Control
		//PCI DSS v3.2;PCI DSS (3.2) - 6.5.8 - Improper access control,OWASP Top 10 2013;A4-Insecure Direct Object References,OWASP Top 10 2017;A5-Broken Access Control
		String[] splitted = categories.split(",");
		for (String split: splitted) {
			inspect(split,classification);
			
		}
		return classification;
	}

}