BinaryContentInput content = new BinaryContentInput(is);
Object theme = reader.read(content, file.getName());
InteractionFactory interactionFactory =
InteractionFactory.getDefaultInstance();
InteractionModel interactionModel = interactionFactory
.createInteractionModel(PolicyModel.MODEL_DESCRIPTOR);
Proxy proxy = interactionModel.createProxyForModelObject(theme);
proxy.validate();
new ResourceDiagnosticsAdapter(resource).
setDiagnostics(proxy.getDiagnostics());
}