class GroupService {

    public boolean isNotExistInProjectAndGroup(String name) throws SQLException {
        name = name.trim();
        return projectDao.getCountByName(name) == 0 && groupDao.getCountByName(name) == 0;
    }

}