class ModelMapper {

    public License getLicense(final DbLicense dbLicense) {
        final License license = DataModelFactory.createLicense(dbLicense.getName(), dbLicense.getLongName(),
            dbLicense.getComments(), dbLicense.getRegexp(), dbLicense.getUrl());

        if (dbLicense.isApproved() != null) {
            license.setApproved(dbLicense.isApproved());
        }else{
            license.setPending(true);
        }

        if (license.getLongName().isEmpty() && license.getComments().isEmpty() && license.getUrl().isEmpty()
            && license.getRegexp().isEmpty()) {
            license.setUnknown(true);
        }

        return license;
    }

    public  ModelMapper(final RepositoryHandler repoHandler);

}