@SuppressWarnings("unchecked")
@Override
public OperationResult invokeOperation(String name, Configuration parameters) throws Exception {
if ("reloadCaches".equals(name)) {
EmsBean emsBean = getEmsBean();
Map<String, Integer> before = (Map<String, Integer>) emsBean.getAttribute("CacheCounts").refresh();
emsBean.getOperation("reloadCaches").invoke(); // void return
Map<String, Integer> after = (Map<String, Integer>) emsBean.getAttribute("CacheCounts").refresh();
OperationResult result = new OperationResult();
PropertyList statistics = new PropertyList("reloadStatistics");
result.getComplexResults().put(statistics);
for (String cacheName : before.keySet()) {