Add AppErrorDetail service and code formatting, fixed CheckStyle error