final Service service = Service.class.cast(visitable);
final ServiceContext serviceContext = contextGenerator.serviceFromThrift(service);
for (ThriftMethod method: service.getMethods()) {
final MethodContext methodContext = contextGenerator.methodFromThrift(method);
serviceContext.addMethod(methodContext);
for (final ThriftField field : method.getArguments()) {
methodContext.addParameter(contextGenerator.fieldFromThrift(field));
}