code: protected static String coerceToString(Value value, ExecutionContext context) {
  		if (value == null)
  			return null;
  		if (!(value instanceof StringValue))
  			throw new CommandExecutionException("Value " + value + ", class "
  					+ value.getClass().getCanonicalName() + " is not a string");
  		String str = value.toString();
  		if (str.indexOf("$") == -1 || context == null)
  			return str;
  		return (String) Utils.groovyEvaluate(context, "\"" + str + "\"");
  	}
docs: Coerces a value to String. Throws a
  {@link com.github.srec.command.exception.CommandExecutionException} if
  value is not of the expected type.
  
  @param value
  The value
  @param context
  The context used to evaluate the text, required if there is
  string interpolation
  @return The converted value