}
// create proxies for named queries
Iterator queries = getQueries().iterator();
while (queries.hasNext()) {
Query q = (Query) queries.next();
NamedQuery proxy = new NamedQuery(q.getName());
proxy.setName(q.getName());
// resolve metadata so that client can have access to it without knowing about
// the server query.
proxy.initMetadata(q.getMetaData(serverResolver));
clientMap.addQuery(proxy);
}
return clientMap;
}