Replace WSPrincipal.getCredential() with WSSubject lookup

Apache 2.0

Replaces WSCredential credential = WSPrincipal.getCredential(); with a null initializer + try/catch lookup.

org.openrewrite.java.liberty.ReplaceWSPrincipalGetCredential
mod run . --recipe=org.openrewrite.java.liberty.ReplaceWSPrincipalGetCredential

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.