+ public void addCustomExpression(CustomExpression expression){
+ if (customExpressions.contains(expression)){
+ log.user("Could not add custom expression "+expression.getName()+" to document as document alerady has a matching expression.");
+ } else {
+ customExpressions.add(expression);
+ }
+ }
+
+ public void removeCustomExpression(CustomExpression expression){
+ customExpressions.remove(expression);
+ }
+
+ public ArrayList<CustomExpression> getCustomExpressions(){
+ return customExpressions;
+ }
+