def to format
      #Formats are enums in java, so they are all uppercase
      if to_formats.include? format
        @citero::to(Formats::valueOf(format.upcase))
      else
        @citero::to(CitationStyles::valueOf(format.upcase))
      end
    #rescue any exceptions, if the error is not caught in JAR, most likely a 
    #problem with the source format
    rescue Exception => e
      raise ArgumentError, "Missing a source format. Use from_[format] first."
    end
def to format
      #Formats are enums in java, so they are all uppercase
      if to_formats.include? format
        @citero::to(Formats::valueOf(format.upcase))
      else
        @citero::to(CitationStyles::valueOf(format.upcase))
      end
    #rescue any exceptions, if the error is not caught in JAR, most likely a 
    #problem with the source format
    rescue Exception => e
      raise ArgumentError, "Missing a source format. Use from_[format] first."
    end
The to method is private, it takes in a format and gets
 the appropriate Format java class and then calls
 the to method in the Citero java object and returns the
 return value as a string.