List<Variable> () { List<Variable> myVariables = new ArrayList<>(); for(int i = 0; i < myTemplate.getVariableCount(); i++) { myVariables.add(new Variable(myTemplate.getVariableNameAt(i), myTemplate.getExpressionStringAt(i), myTemplate.getDefaultValueStringAt(i), myTemplate.isAlwaysStopAt(i))); } return myVariables; }