package io.pivotal.labs.cfenv;

import java.net.URI;
import java.net.URISyntaxException;
import java.util.NoSuchElementException;
import java.util.Set;

public class CloudFoundryService {

    private String name;
    private String label;
    private String plan;
    private Set<String> tags;
    private String uri;

    public CloudFoundryService(String name, String label, String plan, Set<String> tags, String uri) {
        this.name = name;
        this.label = label;
        this.plan = plan;
        this.tags = tags;
        this.uri = uri;
    }

    public String getName() {
        return name;
    }

    public String getLabel() {
        return label;
    }

    public String getPlan() {
        return plan;
    }

    public Set<String> getTags() {
        return tags;
    }

    public URI getUri() throws URISyntaxException {
        if (uri == null) throw new NoSuchElementException("no uri in service: " + name);
        return new URI(uri);
    }

}

@@ -190,24 +190,30 @@
     private 
+final 
 String name;
@@ -221,24 +221,30 @@
     private 
+final 
 String label
@@ -253,24 +253,30 @@
     private 
+final 
 String plan;
@@ -288,16 +288,22 @@
 private 
+final 
 Set%3CStri
@@ -324,16 +324,22 @@
 private 
+final 
 String u

Make some fields final