add type to lawha domain object and refactored api to retrieve lawhat by type