*/
public CachingModel parseCachingModel(Element element) {
String cronExpression = element.getAttribute("cronExpression");
String groups = element.getAttribute("groups");
OsCacheCachingModel model = new OsCacheCachingModel(groups, cronExpression);
String refreshPeriodAttr = element.getAttribute("refreshPeriod");
if (StringUtils.hasText(refreshPeriodAttr)) {
try {
int refreshPeriod = Integer.parseInt(refreshPeriodAttr);
model.setRefreshPeriod(refreshPeriod);
} catch (NumberFormatException exception) {
// ignore exception;
}
}