code: public static XStream createXStream() {
          final Class<?>[] classes = new Class[] { Dependencies.class, Package.class, DependsOn.class, NotDependsOn.class, Dependency.class };
          final XStream xstream = new XStream();
          XStream.setupDefaultSecurity(xstream);
          xstream.allowTypes(classes);
          xstream.alias("dependencies", Dependencies.class);
          xstream.alias("package", Package.class);
          xstream.alias("dependsOn", DependsOn.class);
          xstream.alias("notDependsOn", NotDependsOn.class);
          xstream.aliasField("package", Dependency.class, "packageName");
          xstream.useAttributeFor(Package.class, "name");
          xstream.useAttributeFor(Package.class, "comment");
          xstream.useAttributeFor(Dependency.class, "packageName");
          xstream.useAttributeFor(Dependency.class, "includeSubPackages");
          xstream.useAttributeFor(NotDependsOn.class, "comment");
          xstream.addImplicitCollection(Package.class, "dependencies");
          return xstream;
      }
docs: Creates a ready configured XStream instance.
  
  @return New XStream instance.