/**
* Given a command name, return the name of the class that implements
* that command in the server.
*/
private static String getCommandClass(String cmdName) {
ServiceLocator h = getManHabitat();
String cname = "org.glassfish.api.admin.AdminCommand";
ActiveDescriptor<?> ad = h.getBestDescriptor(
BuilderHelper.createNameAndContractFilter(cname, cmdName));
if (ad == null) return null;
return ad.getImplementation();
}