@Override
          public String getUsername() {
            return username;
          }
Retrieves credentials for {@code registry} from Maven settings.

@param registry the registry
@return the auth info for the registry, or {@link Optional#empty} if none could be retrieved
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/MavenSettingsServerCredentials.java