I changed getErrorSet methods to return by valued and refactored places where those methods are used. @tbold @oda @lgut @mleszczy