public static void copyFromJAXB(ConnectorType jaxb, RConnector repo, RepositoryContext repositoryContext,
IdGeneratorResult generatorResult) throws DtoTranslationException {
copyAssignmentHolderInformationFromJAXB(jaxb, repo, repositoryContext, generatorResult);
repo.setNameCopy(RPolyString.copyFromJAXB(jaxb.getName()));
repo.setConnectorBundle(jaxb.getConnectorBundle());
repo.setConnectorType(jaxb.getConnectorType());
repo.setConnectorVersion(jaxb.getConnectorVersion());
repo.setFramework(jaxb.getFramework());
repo.setConnectorHostRef(RUtil.jaxbRefToEmbeddedRepoRef(jaxb.getConnectorHostRef(), repositoryContext.relationRegistry));
if (jaxb.getConnectorHost() != null) {
LOGGER.warn("Connector host from connector type won't be saved. It should be " +
"translated to connector host reference.");
}
try {
repo.setTargetSystemType(RUtil.listToSet(jaxb.getTargetSystemType()));
} catch (Exception ex) {
throw new DtoTranslationException(ex.getMessage(), ex);
}
}
}