userParameterWrapper = new UserParameterWrapper( includedScopes, excludedScopes, includeOptional, clashSeverity );
//System.out.println("UserParameter aus url hergestellt: " + includedScopes.toString() + " " + excludedScopes.toString() + " " + includeOptional) ;
}
com.clashinspector.DependencyService dependencyService = new com.clashinspector.DependencyService();
ClashCollectResultWrapper clashCollectResultWrapper = new ClashCollectResultWrapper( dependencyService.getDependencyTree( mainArtifact, repositorySystemSession, repositorySystem, userParameterWrapper.getIncludedScopes(), userParameterWrapper.getExcludedScopes(), userParameterWrapper.getIncludeOptional() ) );
ObjectMapper mapper = new ObjectMapper();
SimpleModule module = new SimpleModule( "MyModule", new org.codehaus.jackson.Version( 1, 0, 0, null ) );
module.addSerializer( Version.class, new VersionSerializer() );
module.addSerializer( Project.class, new ProjectSerializerForDependencyNodeWrapper() );
module.addSerializer( DependencyNodeWrapper.class, new DependencyNodeWrapperSerializer() );
mapper.registerModule( module );
String value = "";
try {
ResponseObject responseObject = new ResponseObject();
responseObject.setResult( clashCollectResultWrapper.getRoot() );
responseObject.setUserParameterWrapper( userParameterWrapper );
value = mapper.writeValueAsString( responseObject );