in service/src/main/java/org/apache/fineract/cn/office/rest/controller/OfficeRestController.java [363:370]
ResponseEntity<Employee> findEmployee(@PathVariable("useridentifier") final String identifier) {
final Optional<Employee> employee = this.employeeService.findByCode(identifier);
if (employee.isPresent()) {
return ResponseEntity.ok(employee.get());
} else {
throw ServiceException.notFound("Employee with identifier {0} not found.", identifier);
}
}