final String legacyHostName = tgt.getHostName();
final ModelVersion coreVersion = tgt.getVersion();
final String subsystemName = findSubsystemName(address);
final ModelVersion usedVersion = subsystemName == null ? coreVersion : tgt.getSubsystemVersion(subsystemName);
final TransformersLogger logger = context.getContext().getLogger();
final boolean error = tgt.isIgnoredResourceListAvailableAtRegistration();
List<String> messages = error ? new ArrayList<String>() : null;
for (Map.Entry<String, Map<String, ModelNode>> entry : failedAttributes.entrySet()) {
RejectAttributeChecker checker = failedCheckers.get(entry.getKey());
String message = checker.getRejectionLogMessage(entry.getValue());
if (error) {
//Create our own custom exception containing everything
messages.add(message);
} else {
return logger.getAttributeWarning(address, op, message, entry.getValue().keySet());
}
}
if (error) {
// Target is 7.2.x or higher so we should throw an error