package com.l7tech.external.assertions.gatewaymanagement.server;

import com.l7tech.gateway.common.cluster.ClusterProperty;
import com.l7tech.objectmodel.FindException;
import com.l7tech.util.Either;
import com.l7tech.util.Option;
import com.l7tech.util.Functions.Unary;

class bw implements Unary<Either<FindException, Option<ClusterProperty>>, String> {
   final PrivateKeyResourceFactory this$0;

   bw(PrivateKeyResourceFactory var1) {
      this.this$0 = var1;
   }

   public Either<FindException, Option<ClusterProperty>> call(String var1) {
      try {
         return Either.right(Option.optional((ClusterProperty)this.this$0.z.findByUniqueName(var1)));
      } catch (FindException var3) {
         return Either.left(var3);
      }
   }
}
