* @since 1.3.0
*/
public final class XmlStructureMappingTreeConverter {
public MappingTreeStructure convert(XmlStructure xml, boolean isTarget, CallbackResult callback) {
IntegrationServer server = IntegrationServer.getInstance();
TreeMapperInfoProvider call = server.getServerCall(TreeMapperInfoProvider.class);
DefaultMappingStructureCallback cb = new DefaultMappingStructureCallback(callback);
call.getJtrForStructure(xml.getFilePath(), xml.getRootNodeName(), isTarget, cb);
return cb.getMappingStructure();
}