public Action leaseAction(DataSource metadata) {
String type = (String)metadata.getAttribute("type");
if(type == "action") {
String className = (String)metadata.getAttribute("className");
if(pools.containsKey(className)){
Action action = pool(className).lease();
return pool(className).lease();
} else {
log.debug("no pool for " + className);
}
} else {