class DepartmentRepository {

    public DepartmentRes getDepartmentById(final String departmentId, final String tenantId) {
        final RequestInfo requestInfo = new RequestInfo();
        requestInfo.setTs(dateFactory.create());
        final RequestInfoWrapper wrapper = new RequestInfoWrapper();
        wrapper.setRequestInfo(requestInfo);
        return restTemplate.postForObject(departmentByIdUrl, wrapper, DepartmentRes.class, departmentId, tenantId);
    }

    @Autowired public  DepartmentRepository(final RestTemplate restTemplate,
            @Value("${egov.services.commonmasters.host}") final String departmentServiceHostname,
            @Value("${egov.services.common_masters.department}") final String departmentByIdUrl, final DateFactory dateFactory);

}