code: public static java.sql.Time toTime(final Object value) {
  		if (value == null) {
  			return null;
  		}
  		if (value instanceof java.sql.Time) {
  			return (java.sql.Time) value;
  		}
  		if (value instanceof java.util.Date) {
  			final Date date = (java.util.Date) value;
  			return new java.sql.Time(date.getTime());
  		}
  		return null;
  	}
docs: To time.
  
  @param value the value
  @return the java.sql. time