code: public static Boolean flickrBooleanToBoolean(String value) {
          if (value == null || value.trim().length() == 0) {
              return null;
          }
          value = value.trim();
          return (value.equalsIgnoreCase("true") || value.equalsIgnoreCase("1")) ? Boolean.TRUE : Boolean.FALSE;
      }
docs: Convert Flickr true/false to Boolean.
  
  A null or empty value will return null. Generally, this means the parameter was not present in the reply from Flickr.
  
  A value of "true" or "1" will return {@link java.lang.Boolean#TRUE}. Any other non-null value will return
  {@link java.lang.Boolean#FALSE}.
  
  @param value the true/false value from Flickr.
  @return corresponding Boolean value, or null if value was null.