if (env == null)
env = Config.getEnvironment();
string = rewritePathString(string);
Expr expr = new ELParser(env, string).parse();
Object obj = expr.evalObject(env);
if (obj == null)
throw new NullPointerException(L.l("Path '{0}' evaluated to null.",
string));
if (obj instanceof Path)