Folosit ErrorMessage in loc de System.out.println in LayoutParser