* @see com.github.api.v2.services.GistService#createGist(java.lang.String, java.lang.String, com.github.api.v2.schema.Gist.Visibility, java.util.Map)
*/
@Override
public Gist createGist(String userName, String description, Visibility visibility,
Map<String, String> contents) {
GitHubApiUrlBuilder builder = createGitHubApiUrlBuilder(GitHubApiUrls.GistApiUrls.CREATE_GIST_URL);
String apiUrl = builder.withField(ParameterNames.USER_NAME, userName).buildUrl();
Gist gist = new Gist();
gist.setDescription(description);
gist.setVisibility(visibility);
for (String filename : contents.keySet()) {
File file = new File();