class Util {

    public static String getNextAvailableName(Context context, String basename) {
        String name = basename;
        do {
            name = getNextName(name);
        } while (doesSurveyExist(context, name));
        return  name;
    }

}