public static Credentials createDefaultCredentials() {
//Try system properties
String username = System.getProperty("github.user.name");
String password = System.getProperty("github.user.password");
if (username!=null && password!=null) {
return new BasicAuthCredentials(GITHUB_HOST, username, password);
}
//No credentials found. Try proceeding without credentials.
return new NullCredentials();
}