}
private void addApplicationVersionNodes(List<Node> nodes, List<Link> links, Application application) {
List<ApplicationVersion> appVersions = application.getApplicationVersions();
for (ApplicationVersion appVersion : appVersions) {
Node appVersionNode = new Node();
appVersionNode.setType("applicationVersion");
appVersionNode.setId(Long.toString(appVersion.getId()));
appVersionNode.setUuid(appVersion.getUuid());
appVersionNode.setMatch(Float.toString(generator.nextFloat() * 1.0f));
appVersionNode.setName(appVersion.getVersionName());
appVersionNode.setPopularity(Integer.toString(generator.nextInt() * 10));
nodes.add(appVersionNode);
Link link = new Link();
link.setSource(appVersion.getUuid());
link.setTarget(application.getUuid());