Leveraging Predefined Interfaces for Creating Handler (Java)