Pattern () { if (StringUtil.isEmpty(fieldType)) { return null; } if (fieldTypePattern == null) { try { fieldTypePattern = Pattern.compile(fieldType); } catch (PatternSyntaxException e) { fieldType = null; LOG.warn(e.getMessage()); } } return fieldTypePattern; }