private App findAppById(Long appId) { Response<App> findResp = appService.findById(appId); if (!findResp.isSuccess()){ throw new RuntimeException("Failed to find app, id = " + appId); } App app = findResp.getData(); if (app == null){ throw new RuntimeException("The app isn't exist, id = " + appId); } return app; } }