return instance;
}
public ObjectInstance createMBean(String className, ObjectName objectName, ObjectName loaderName, Object args, String[] parameters, Subject delegate) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException, IOException
{
Call call = createCall();
call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "createMBean"));
call.addParameter("className", XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter("objectName", qObjectName, ParameterMode.IN);
call.addParameter("loaderName", qObjectName, ParameterMode.IN);
call.addParameter("arguments", XMLType.SOAP_ARRAY, ParameterMode.IN);
call.addParameter("signature", XMLType.SOAP_ARRAY, ParameterMode.IN);
call.addParameter("delegate", qSubject, ParameterMode.IN);
call.setReturnType(qObjectInstance);
ObjectInstance instance = (ObjectInstance)call.invoke(new Object[]{className, objectName, loaderName, args, parameters, delegate});
return instance;
}