title: How to use cfEnv in spring-boot?
body: <p>I was using spring cloud now it has been removed from our org and asked to used cfenv java-cfenv: A new library for accessing Cloud Foundry Services. So was updating the code everywhere now the issue is</p>
  <p>We have defined a bean</p>
  <pre><code>@Bean
  public UserInfo userInfo(Cloud cloud){
      return cloud.getServiceConnector(&quot;user-info&quot;,UserInfo.class,null)
  }
  </code></pre>
  <p>when I try to migrate it to cfEnv</p>
  <pre><code>@Bean
  public UserInfo userInfo(CfEnv cfEnv){
      return cfEnv.find(&quot;user-info&quot;,UserInfo.class,null) // getting compile time issue as I have to return the UserInfo only from here 
  }
  </code></pre>