@@ -0,0 +1,2249 @@
+package net.explorviz.landscape.repository.persistence;%0A%0Aimport net.explorviz.landscape.model.application.AggregatedClazzCommunication;%0Aimport net.explorviz.landscape.model.application.Application;%0Aimport net.explorviz.landscape.model.application.ApplicationCommunication;%0Aimport net.explorviz.landscape.model.application.Clazz;%0Aimport net.explorviz.landscape.model.application.ClazzCommunication;%0Aimport net.explorviz.landscape.model.application.Component;%0Aimport net.explorviz.landscape.model.application.DatabaseQuery;%0Aimport net.explorviz.landscape.model.application.TraceStep;%0Aimport net.explorviz.landscape.model.helper.EProgrammingLanguage;%0Aimport net.explorviz.landscape.model.landscape.Landscape;%0Aimport net.explorviz.landscape.model.landscape.Node;%0Aimport net.explorviz.landscape.model.landscape.NodeGroup;%0Aimport net.explorviz.landscape.model.landscape.System;%0Aimport org.nustaq.serialization.FSTConfiguration;%0A%0A/**%0A * Helper class for FST.%0A *%0A *%0A */%0Apublic class FstHelper %7B%0A%0A  /**%0A   * Creates a new %7B@link FSTConfiguration%7D and registers all available model classes.%0A   *%0A   * @return the configuration.%0A   */%0A  public static FSTConfiguration createFstConfiguration() %7B%0A    final FSTConfiguration result = FSTConfiguration.createDefaultConfiguration();%0A    result.registerClass(Landscape.class);%0A    result.registerClass(System.class);%0A    result.registerClass(NodeGroup.class);%0A    result.registerClass(Node.class);%0A    result.registerClass(Application.class);%0A    result.registerClass(ApplicationCommunication.class);%0A    result.registerClass(AggregatedClazzCommunication.class);%0A    result.registerClass(DatabaseQuery.class);%0A    result.registerClass(EProgrammingLanguage.class);%0A    result.registerClass(Component.class);%0A    result.registerClass(Clazz.class);%0A    result.registerClass(ClazzCommunication.class);%0A    result.registerClass(TraceStep.class);%0A%0A    return result;%0A  %7D%0A%0A%0A  /**%0A   * Converts a landscape object to bytes.%0A   *%0A   * @param landscape the landscape object%0A   *%0A   * @return the given landscape as byte array%0A   */%0A  public static byte%5B%5D convertLandscapeToBytes(final Landscape landscape,%0A      final FSTConfiguration conf) %7B%0A    // TODO: Move to %22ExportHelper%22%0A    return conf.asByteArray(landscape);%0A  %7D%0A%0A%7D%0A

Create helper class for basic FST operations