}
}
// create proxies for named queries
for (Query q : getQueries()) {
NamedQuery proxy = new NamedQuery(q.getName());
proxy.setName(q.getName());
proxy.setDataMap(clientMap);
// 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;
}