|
|
@ -67,7 +67,7 @@ public class PathFunctionFactory { |
|
|
|
public static PathFunction newFunction(String name) throws InvalidPathException { |
|
|
|
public static PathFunction newFunction(String name) throws InvalidPathException { |
|
|
|
Class functionClazz = FUNCTIONS.get(name); |
|
|
|
Class functionClazz = FUNCTIONS.get(name); |
|
|
|
if(functionClazz == null){ |
|
|
|
if(functionClazz == null){ |
|
|
|
throw new InvalidPathException("Function with name: " + name + " does not exists."); |
|
|
|
throw new InvalidPathException("Function with name: " + name + " does not exist."); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
try { |
|
|
|
try { |
|
|
|
return (PathFunction)functionClazz.newInstance(); |
|
|
|
return (PathFunction)functionClazz.newInstance(); |
|
|
|