I managed to do it with the next code but there must be an easier way.
<%@ taglib prefix=\"c\" uri=\"http://java.sun.com/jsp/jstl/core\" %> <%@ tag
Since i have have just one element in my Set the order is not important So I can access to the first element like this :
${ attachments.iterator().next().id }