if (StringUtils.isBlank(loggerName)) {
throw new IllegalArgumentException("Null value not permitted");
}
if (!loggerName.startsWith(SyncopeLoggerType.AUDIT.getPrefix())) {
throw new ParseException("Audit logger name must start with " + SyncopeLoggerType.AUDIT.getPrefix(), 0);
}
String[] splitted = loggerName.split("\\.");
if (splitted == null || splitted.length < 5) {
throw new ParseException("Unparsable logger name", 0);
}
Category category = Category.valueOf(splitted[2]);
Enum<?> subcategory = Enum.valueOf(category.getSubCategory(), splitted[3]);
Result result = Result.valueOf(splitted[4]);