class SetupDataBaseController {

    @RequestMapping(value = "initializeDb", method = RequestMethod.POST)
    public ServiceResult initializeDb(@RequestBody InitDbUserRequset initDbUserRequset) {
        try {
           /* if (!setupDBService.datasourceXmlValid() || !setupDBService.initializeDatasourceXml(initDbUserRequset.getDbaddress(), initDbUserRequset.getDbport(), initDbUserRequset.getDbuser(), initDbUserRequset.getDbpassword(), initDbUserRequset.getDbcatalog())) {
                return ServiceResult.fail("Error occured while initializing the jdbc.properties file.");
            }*/

            /*if (!setupDBService.setupTables()) {
                return ServiceResult.fail("Error occured while setting up the tables.");
            }

            DasGroup group = DasGroup.builder()
                    .group_name(initDbUserRequset.getGroupName())
                    .group_comment(initDbUserRequset.getGroupComment())
                    .build();

            LoginUser user = LoginUser.builder()
                    .userNo(initDbUserRequset.getAdminNo())
                    .userName(initDbUserRequset.getAdminName())
                    .userEmail(initDbUserRequset.getAdminEmail())
                    .password(MD5Util.parseStrToMd5L32(initDbUserRequset.getAdminPass()))
                    .build();*/

            /*if (!setupDBService.setupAdmin(group, user)) {
                return ServiceResult.fail("Error occured while setting up the admin.");
            }*/
            return ServiceResult.success();
        } catch (Exception e) {
            log.error("SetupDBController.initializeDb : {}", StringUtil.getMessage(e));
            return ServiceResult.fail(StringUtil.getMessage(e));
        }
    }

}