reqConfigurator.setObjectName(mbeanName);
reqConfigurator.setAttributeName(attributeName);
reqConfigurator.setClientVersion(ADMIN_CLIENT_VERSION);
AdminResponse response = sendRequest(request);
//Assert.assert(response);
AdminResponseConfigurator resConfigurator =
new AdminResponseConfigurator(response);
if (resConfigurator.hasException())
{
Throwable t = resConfigurator.getException();
if (t instanceof AttributeNotFoundException)
{
throw (AttributeNotFoundException)t;
}
else if (t instanceof InstanceNotFoundException)
{
throw (InstanceNotFoundException)t;
}
else if (t instanceof MBeanException)
{
throw (MBeanException)t;
}
else if (t instanceof ReflectionException)
{
throw (ReflectionException)t;
}
else if (t instanceof RuntimeException)
{
throw (RuntimeException)t;
}
else if (t instanceof Error)
{
throw new RuntimeErrorException((Error)t);
}
}
else
{
returnValue = resConfigurator.getReturnValue();
}
return returnValue;
}