/** * Return a new client that may be cached or not. Given properties are always use when not cached, and only used at creation time for * cached clients. * * @param name * if null, default client. Otherwise, helpful to retrieve cached clients later. * @param p * a set of properties. Implementation specific. Unknown properties are silently ignored. * @param cached * if false, the client will not be cached and subsequent calls with the same name will return different objects. */ public static JqmClient getClient(String name, Properties p, boolean cached) { Properties p2 = null; if (binder == null) { bind(); } if (p == null) { p2 = props; } else { p2 = new Properties(props); p2.putAll(p); } return binder.getClientFactory().getClient(name, p2, cached); }