String subsystemName = address.getLastElement().getValue();
if (subsystemVersions.containsKey(subsystemName)) {
String[] version = subsystemVersions.get(subsystemName).split("\\.");
int major = Integer.parseInt(version[0]);
int minor = Integer.parseInt(version[1]);
SubsystemInformation info = extensionRegistry.getSubsystemInfo(subsystemName);
if (info.getManagementInterfaceMajorVersion() == major && info.getManagementInterfaceMinorVersion() == minor) {
return resource; //no need to transform
}
log.debug("transforming subsystem: " + subsystem + ", to model version: " + subsystemVersions.get(subsystemName));
SubsystemTransformer transformer = extensionRegistry.getTransformerRegistry().getSubsystemTransformer(subsystemName, major, minor);
if (transformer != null) {