QOSPolicyCfg policyConfiguration,
List<Message> unacceptableReasons)
{
String className = policyConfiguration.getJavaClass();
QOSPolicyCfgDefn d = QOSPolicyCfgDefn.getInstance();
ClassPropertyDefinition pd = d.getJavaClassPropertyDefinition();
// Validate the configuration.
try
{
// Load the class and cast it to a network group policy factory.
Class<? extends QOSPolicyFactory> theClass;
QOSPolicyFactory factory;
theClass = pd.loadClass(className, QOSPolicyFactory.class);
factory = theClass.newInstance();
// Determine the initialization method to use: it must take a
// single parameter which is the exact type of the configuration
// object.