InteractionModel interactionModel = interactionFactory
.createInteractionModel(PolicyModel.MODEL_DESCRIPTOR);
Proxy proxy = interactionModel.createProxyForModelObject(theme);
proxy.validate();
new ResourceDiagnosticsAdapter(resource).
setDiagnostics(proxy.getDiagnostics());
}
} catch (CoreException e) {
e.printStackTrace();