// Declare a schema for a structured exception that can be used in failed method invocations.
SchemaObjectClass exception = new SchemaObjectClass(packageName, "exception");
exception.addProperty(new SchemaProperty("whatHappened", QmfType.TYPE_STRING));
exception.addProperty(new SchemaProperty("howBad", QmfType.TYPE_INT));
exception.addProperty(new SchemaProperty("details", QmfType.TYPE_MAP));
// Declare a control object to test methods against.
SchemaObjectClass control = new SchemaObjectClass(packageName, "control");
control.addProperty(new SchemaProperty("state", QmfType.TYPE_STRING));
control.addProperty(new SchemaProperty("methodCount", QmfType.TYPE_INT));