package com.stnetix.ariaddna.servercore.configuration;

import com.stnetix.ariaddna.pushnotification.server.PushServer;
import com.stnetix.ariaddna.restapiserver.Swagger2SpringBoot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;

/**
 * Created by alexkotov on 18.07.17.
 */

@SpringBootApplication
@Import(Swagger2SpringBoot.class)
public class ServerCoreConfiguration  {
    public static void main(String[] args) {
        SpringApplication.run(Swagger2SpringBoot.class, args);
        PushServer pushServer = new PushServer(8081);
        try {
            pushServer.start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

@@ -1,185 +1,670 @@
-package com.stnetix.ariaddna.servercore.configuration;%0A%0Aimport com.stnetix.ariaddna.pushnotification.server.PushServer;%0Aimport com.stnetix.ariaddna.restapiserver.Swagger2SpringBoot;
+/*%0A * Copyright (c) 2018 stnetix.com. All Rights Reserved.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not%0A * use this file except in compliance with the License.  You may obtain a copy of%0A * the License at http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software distributed%0A * under the License is distributed on an %22AS IS%22 BASIS, without warranties or%0A * conditions of any kind, EITHER EXPRESS OR IMPLIED.  See the License for the%0A * specific language governing permissions and limitations under the License.%0A */%0A%0Apackage com.stnetix.ariaddna.servercore.configuration;%0A
 %0Aimp
@@ -761,26 +761,24 @@
 ure.
-EnableAutoConfigur
+SpringBootApplic
 atio
@@ -811,181 +811,159 @@
 ork.
-boot.autoconfigure.SpringBootApplication
+context.annotation.Import
 ;%0A
+%0A
 import 
-org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;%0Aimport org.springframework.context.annotation.Impor
+com.stnetix.ariaddna.pushnotification.server.PushServer;%0Aimport com.stnetix.ariaddna.restapiserver.Swagger2SpringBoo
 t;%0A%0A
@@ -1102,18 +1102,65 @@
 uration 
- 
 %7B
+%0A%0A    private ServerCoreConfiguration() %7B%0A    %7D%0A
 %0A    pub

fix checkstyle in server-core