Tag Selected: single responsibility principle example java