synchronize on the class instead of this in static methods