* @see com.github.api.v2.services.RepositoryService#createRepository(java.lang.String, java.lang.String, java.lang.String, com.github.api.v2.schema.Repository.Visibility)
*/
@Override
public Repository createRepository(String name, String description,
String homePage, Visibility visibility) {
GitHubApiUrlBuilder builder = createGitHubApiUrlBuilder(GitHubApiUrls.RepositoryApiUrls.CREATE_REPOSITORY_URL);
String apiUrl = builder.buildUrl();
Map<String, String> parameters = new HashMap<String, String>();
parameters.put(ParameterNames.NAME, name);
parameters.put(ParameterNames.DESCRIPTION, description);
parameters.put(ParameterNames.HOME_PAGE, homePage);
parameters.put(ParameterNames.PUBLIC, ((visibility == Visibility.PUBLIC)? "1" : "0"));