class OSHGetResultEnvoy extends AbstractOSHEnvoy {

    static String getTimeString(TimeSpan timeSpan)
    {
        String timeString;
        if (timeSpan.isZero() || timeSpan.isTimeless())
        {
            timeString = "now";
        }
        else if (timeSpan.isUnboundedStart())
        {
            timeString = "now/" + DateTimeUtilities.generateISO8601DateString(timeSpan.getEndDate());
        }
        else if (timeSpan.isUnboundedEnd())
        {
            timeString = DateTimeUtilities.generateISO8601DateString(timeSpan.getStartDate()) + "/now";
        }
        else if (timeSpan.isInstantaneous())
        {
            timeString = DateTimeUtilities.generateISO8601DateString(timeSpan.getStartDate());
        }
        else
        {
            timeString = timeSpan.toISO8601String();
        }
        return timeString;
    }

    public  OSHGetResultEnvoy(Toolbox toolbox);

}