code: @Override
      public List<String> getInboundTrustedRealms(String realmName) throws WSSecurityException {
          final String METHOD = "getInboundTrustedRealms";
          List<String> trustedRealmList = new ArrayList<String>();
          UserRegistry userRegistry = getActiveUserRegistry();
          if (userRegistry != null) {
              try {
                  if (realmName != null && !realmName.equals(userRegistry.getRealm())) {
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                          Tr.debug(tc, METHOD + " Supplied realm not valid: " + realmName);
                      }
                  } else {
                      trustedRealmList.add(userRegistry.getRealm());
                  }
              } catch (RemoteException e) {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                      Tr.debug(tc, METHOD + " Internal error getting current registry realm", e);
                  }
                  throw new WSSecurityException("Internal error getting realm", e);
              }
          }
          return trustedRealmList;
      }
docs: {@inheritDoc}