EPathVariable (String pathAttr, int varStart) { int slash = pathAttr.indexOf("/", varStart); if (slash > 0) { return new EPathVariable(pathAttr.substring(varStart, slash), pathAttr.substring(slash + 1)); } else { return new EPathVariable(pathAttr.substring(varStart), null); } }