Extracted Swift related methods from MultiEndpoint and stuffed it in SwiftHandler, which is the common ancestor for MultiEndpoint and SwiftEndpoint