protected String createErrorMessage(String message){
  return String.format(Locale.US,"Parsing error at line: %d column: %d. %s",locator.getLineNumber(),locator.getColumnNumber(),message);
}

protected String createErrorMessage ( String message ) { return String . format ( Locale . US , "Parsing error at line: %d column: %d. %s" , locator . getLineNumber ( ) , locator . getColumnNumber ( ) , message ) ; }
creates an error message .
