List list = entity.getAttributes();
List list = new Vector(entity.getAttributes());
  private static SortedMap getAllEntityPathes    ( EntityPath motherEntityPath,       Class currentEntityClass,       int currentLayer,       int maximumSearchDepth) {           // entering a new layer....    currentLayer++;		GenericEntity entity = getEntity(currentEntityClass);    if (entity == null)      return new TreeMap();    List list = entity.getAttributes();    Iterator iterator = list.iterator();    TreeMap pathes = new TreeMap();    while (iterator.hasNext())  {      EntityAttribute attribute = (EntityAttribute) iterator.next();      Class anEntityClass = attribute.getRelationShipClass();      EntityPath currentPath = (EntityPath) motherEntityPath.clone();      currentPath.add(attribute.getColumnName());      if (anEntityClass == null) {        // finished!				currentPath.setTargetEntity(currentEntityClass);        // use shortKey as key for the returned HashMap        pathes.put(currentPath.getShortKey(), currentPath);      }      else if (currentLayer < maximumSearchDepth) {        // go further!        SortedMap PathesOfChild = EntityPath.getAllEntityPathes(currentPath, anEntityClass, currentLayer, maximumSearchDepth);        pathes.putAll(PathesOfChild);      }      }    return pathes;  }