+ "] does not have permission to view resource configuration for [" + resource + "]");
}
Agent agent = resource.getAgent();
AgentClient agentClient = this.agentManager.getAgentClient(agent);
ConfigurationAgentService configService = agentClient.getConfigurationAgentService();
return configService.validate(configuration, resourceId, isStructured);
}
private boolean isStructuredAndRawSupported(int resourceId) {
Resource resource = entityManager.find(Resource.class, resourceId);
ConfigurationDefinition configDef = resource.getResourceType().getResourceConfigurationDefinition();