code: public static CreateException fromThrowable(Throwable cause) {
      return (cause instanceof CreateException)
                     ? (CreateException) cause
                     : new CreateException(cause);
    }
docs: Converts a Throwable to a CreateException. If the Throwable is a
  CreateException, it will be passed through unmodified; otherwise, it will be wrapped
  in a new CreateException.
  
  @param cause the Throwable to convert
  
  @return a CreateException