public PointOfInterest get(String name) { for (PointOfInterest poi : this.container) { if (poi.getName() == name) { return poi; } } return null; }