if (StringUtils.hasContent(propFile)) {
globalSensitiveInformationExposureTokens.addPropertiesFromFile(propFile);
}
try {
SearchPatternsDocumentConfig doc = SearchPatternsDocumentConfig.Factory.parse(SoapUI.class
.getResourceAsStream("/com/eviware/soapui/resources/security/SensitiveInfo.xml"));
for (RegexConfig regex : doc.getSearchPatterns().getRegexList()) {
String description = regex.getDescription();
for (String pattern : regex.getPatternList()) {
globalSensitiveInformationExposureTokens.setPropertyValue("~(?s).*" + pattern + ".*", "["
+ regex.getName() + "] " + description);
}