// Path: sentimentr-client/sentimentr-connector/src/main/java/io/pivotal/fe/sentimentr/client/facade/SentimentrFacade.java
// public class SentimentrFacade {
// 	
// 	private String sentimentrUri;
// 
// 	public SentimentrFacade()
// 	{
// 	}
// 	public SentimentrFacade(String sentimentrUri)
// 	{
// 		this.sentimentrUri = sentimentrUri;
// 	}
// 	
// 	public Sentiment getSentiment(String text)
// 	{
// 		RestTemplate restTemplate = new RestTemplate();
// 		Sentiment sentiment = restTemplate.getForObject(sentimentrUri+"/{text}", Sentiment.class, text);
// 		return sentiment;
// 	}
// 
// }


import io.pivotal.fe.sentimentr.client.facade.SentimentrFacade;
import org.springframework.cloud.config.java.AbstractCloudConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
package io.pivotal.fe.sentimentr.client.config;



@Configuration
@Profile({"cloud","local"})
public class CloudConfiguration extends AbstractCloudConfig {
    @Bean
// Path: sentimentr-client/sentimentr-connector/src/main/java/io/pivotal/fe/sentimentr/client/facade/SentimentrFacade.java
// public class SentimentrFacade {
// 	
// 	private String sentimentrUri;
// 
// 	public SentimentrFacade()
// 	{
// 	}
// 	public SentimentrFacade(String sentimentrUri)
// 	{
// 		this.sentimentrUri = sentimentrUri;
// 	}
// 	
// 	public Sentiment getSentiment(String text)
// 	{
// 		RestTemplate restTemplate = new RestTemplate();
// 		Sentiment sentiment = restTemplate.getForObject(sentimentrUri+"/{text}", Sentiment.class, text);
// 		return sentiment;
// 	}
// 
// }


// Path: sentimentr-client/sentimentr-ui/src/main/java/io/pivotal/fe/sentimentr/client/config/CloudConfiguration.java
import io.pivotal.fe.sentimentr.client.facade.SentimentrFacade;
import org.springframework.cloud.config.java.AbstractCloudConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

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



@Configuration
@Profile({"cloud","local"})
public class CloudConfiguration extends AbstractCloudConfig {
    @Bean
    public SentimentrFacade sentimentrFacade() {