return Time.valueOf( (String ) source );
return new Time( toDate((String ) source).getTime() );
    public static Time toTime( Object source ) throws BirtException    {        if ( source == null )            return null;        if ( source instanceof Date )        {            return new Time( ( (Date) source ).getTime( ) );        }        else if ( source instanceof String )        {            // limited support, expects value in format "hh:mm:ss"            // TODO - add support of alternative formats             try            {                return Time.valueOf( (String ) source );            }            catch( IllegalArgumentException e )            {                // let fall thru to throw BirtException                e.printStackTrace();            }        }        throw new CoreException(                    ResourceConstants.CONVERT_FAILS,                    new Object[]{                            source.toString( ), "Time"                    } );    }