// Path: sentimentr-client/sentimentr-ui/src/main/java/io/pivotal/fe/sentimentr/client/domain/ApplicationInfo.java
// public class ApplicationInfo {
//     private String[] profiles;
//     private String[] services;
//     private String ip;
//     private int port;
//  
//     public ApplicationInfo(String[] profiles, String[] services, String ip, int port) {
//         this.profiles = profiles;
//         this.services = services;
//         this.ip = ip;
//         this.port = port;
//     }
// 
//     public String[] getProfiles() {
//         return profiles;
//     }
// 
//     public void setProfiles(String[] profiles) {
//         this.profiles = profiles;
//     }
// 
//     public String[] getServices() {
//         return services;
//     }
// 
//     public void setServices(String[] services) {
//         this.services = services;
//     }
// 
// 	public String getIp() {
// 		return ip;
// 	}
//  
// 	public void setIp(String ip) {
// 		this.ip = ip;
// 	}
// 
// 	public int getPort() {
// 		return port;
// 	}
// 
// 	public void setPort(int port) {
// 		this.port = port;
// 	}    
// }


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.Cloud;
import org.springframework.cloud.service.ServiceInfo;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import io.pivotal.fe.sentimentr.client.domain.ApplicationInfo;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
package io.pivotal.fe.sentimentr.client.controller;






@Controller
public class InfoController {
    @Autowired(required = false)
    private Cloud cloud;

    private Environment springEnvironment;

    @Autowired
    public InfoController(Environment springEnvironment) {
        this.springEnvironment = springEnvironment;
    }

    @RequestMapping(value = "/appinfo")
// Path: sentimentr-client/sentimentr-ui/src/main/java/io/pivotal/fe/sentimentr/client/domain/ApplicationInfo.java
// public class ApplicationInfo {
//     private String[] profiles;
//     private String[] services;
//     private String ip;
//     private int port;
//  
//     public ApplicationInfo(String[] profiles, String[] services, String ip, int port) {
//         this.profiles = profiles;
//         this.services = services;
//         this.ip = ip;
//         this.port = port;
//     }
// 
//     public String[] getProfiles() {
//         return profiles;
//     }
// 
//     public void setProfiles(String[] profiles) {
//         this.profiles = profiles;
//     }
// 
//     public String[] getServices() {
//         return services;
//     }
// 
//     public void setServices(String[] services) {
//         this.services = services;
//     }
// 
// 	public String getIp() {
// 		return ip;
// 	}
//  
// 	public void setIp(String ip) {
// 		this.ip = ip;
// 	}
// 
// 	public int getPort() {
// 		return port;
// 	}
// 
// 	public void setPort(int port) {
// 		this.port = port;
// 	}    
// }


// Path: sentimentr-client/sentimentr-ui/src/main/java/io/pivotal/fe/sentimentr/client/controller/InfoController.java
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.Cloud;
import org.springframework.cloud.service.ServiceInfo;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import io.pivotal.fe.sentimentr.client.domain.ApplicationInfo;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;

package io.pivotal.fe.sentimentr.client.controller;






@Controller
public class InfoController {
    @Autowired(required = false)
    private Cloud cloud;

    private Environment springEnvironment;

    @Autowired
    public InfoController(Environment springEnvironment) {
        this.springEnvironment = springEnvironment;
    }

    @RequestMapping(value = "/appinfo")
    public @ResponseBody ApplicationInfo info(HttpServletRequest request) {