+ @Override
+ public Optional<Image> getImageByInternalId(final String internalId) {
+ return FluentIterable.from(toAllImages.apply(this)).filter(new Predicate<Image>() {
+ @Override
+ public boolean apply(@Nullable Image input) {
+ return (input != null) && input.getInternalId().equals(internalId);
+ }
+ }).first();
+ }
+