trevorflanagan commented on this pull request.


> +   String tryFindInfoPropertyValue(Response response) {
+      if (!response.info().isEmpty()) {
+         Optional<String> optionalPropertyName = 
FluentIterable.from(response.info())
+               .firstMatch(new Predicate<Property>() {
+                  @Override
+                  public boolean apply(Property input) {
+                     return input.name().equals(propertyName);
+                  }
+               }).transform(new Function<Property, String>() {
+                  @Override
+                  public String apply(Property input) {
+                     return input.value();
+                  }
+               });
+         if (!optionalPropertyName.isPresent()) {
+            throw new IllegalStateException();

👍 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/389#discussion_r123707986

Reply via email to