* @exception Exception if an MBean cannot be created or registered
*/
public String [] getValves()
throws Exception {
Registry registry = MBeanUtils.createRegistry();
StandardHost host = (StandardHost) this.resource;
String mname = MBeanUtils.createManagedName(host);
ManagedBean managed = registry.findManagedBean(mname);
String domain = null;
if (managed != null) {
domain = managed.getDomain();
}
if (domain == null)