}
public static String getICal(final TeamEventDO teamEvent, final TeamEventMailType type) {
final StringBuffer buf = new StringBuffer();
final Calendar calendar = new Calendar();
calendar.getProperties().add(new ProdId("-//Ben Fortuna//iCal4j 1.0//EN"));
calendar.getProperties().add(Version.VERSION_2_0);
calendar.getProperties().add(CalScale.GREGORIAN);
final TimeZoneRegistry registry = TimeZoneRegistryFactory.getInstance().createRegistry();
final VTimeZone tz = registry.getTimeZone(PFUserContext.getTimeZone().getID()).getVTimeZone();
calendar.getComponents().add(tz);