class Utils {

    public static String joinScope(final Set<String> scope) {

        if (scope == null) {
            return "";
        }

        final Iterator<String> iterator = scope.iterator();

        final StringBuilder sb = new StringBuilder();
        if (iterator.hasNext()) {
            sb.append(iterator.next());
        }
        while (iterator.hasNext()) {
            sb.append(" ").append(iterator.next());
        }
        return sb.toString();
    }

}