private EmsBean queryBean(String componentName) {
EmsConnection conn = getConnection();
String pattern = getSingleComponentPattern(cacheManagerName, cacheName, componentName);
if (log.isTraceEnabled()) log.trace("Pattern to query is {0}", pattern);
ObjectNameQueryUtility queryUtility = new ObjectNameQueryUtility(pattern);
List<EmsBean> beans = conn.queryBeans(queryUtility.getTranslatedQuery());
if (beans.size() > 1) {
// If more than one are returned, most likely is due to duplicate domains which is not the general case
log.warn("More than one bean returned from applying {0} pattern: {1}", pattern, beans);
}
EmsBean bean = beans.get(0);