Class[] noParams = new Class[0];
  private Map buildMap(Set set)  {    Map map = new HashMap(set.size());    Iterator iterator = set.iterator();    Class[] noParams = new Class[0];    String id;    while (iterator.hasNext())    {      Object obj = iterator.next();      try      {        Method getIdMethod = obj.getClass().getMethod("getId", noParams);        id = (String) (getIdMethod.invoke(obj, noParams));      }      catch (Exception e)      {        throw new SignetRuntimeException(            "Failed to execute 'getID()' method of object '" + obj                + "' in class '" + obj.getClass() + "'.", e);      }      map.put(id, obj);    }    return map;  }