public static @Nullable CredentialAttributes createCredentialAttributes(String serviceName, String credentialsUser) {
    return StringUtil.isEmpty(serviceName) || StringUtil.isEmpty(credentialsUser)
           ? null
           : new CredentialAttributes(serviceName, credentialsUser);
  }
public static @Nullable CredentialAttributes createCredentialAttributes(String serviceName, String credentialsUser)