List infoRoomOccupation = null;  infoRoomOccupation = (List) CollectionUtils.collect(associatedRoomOccupation, new Transformer() {  public Object transform(Object arg0) { IRoomOccupation roomOccupation = (IRoomOccupation) arg0; return InfoRoomOccupationWithInfoRoom.newInfoFromDomain(roomOccupation);
final List infoRoomOccupations = new ArrayList(associatedRoomOccupation.size()); for (final Iterator iterator = associatedRoomOccupation.iterator(); iterator.hasNext(); ) { final IRoomOccupation roomOccupation = (IRoomOccupation) iterator.next(); final InfoRoomOccupation infoRoomOccupation = InfoRoomOccupationWithInfoRoom.newInfoFromDomain(roomOccupation); if (infoRoomOccupation != null) { infoRoomOccupations.add(infoRoomOccupation);
    private List copyIRoomOccupation2InfoRoomOccupation(List associatedRoomOccupation) {        List infoRoomOccupation = null;        infoRoomOccupation = (List) CollectionUtils.collect(associatedRoomOccupation, new Transformer() {            public Object transform(Object arg0) {                IRoomOccupation roomOccupation = (IRoomOccupation) arg0;                return InfoRoomOccupationWithInfoRoom.newInfoFromDomain(roomOccupation);            }        });        return infoRoomOccupation;    }