FilterPattern () { FilterPattern pattern = myPattern; if (pattern != null) { return pattern; } pattern = new FilterPattern(); pattern.setConstantField(filterConstantField); pattern.setTransientModifier(filterTransientModifier); pattern.setStaticModifier(filterStaticModifier); pattern.setFieldName(filterFieldName); pattern.setFieldType(filterFieldType); pattern.setMethodName(filterMethodName); pattern.setMethodType(filterMethodType); pattern.setEnumField(filterEnumField); pattern.setLoggers(filterLoggers); return myPattern = pattern; }