code: @Override
      public Identity getCallerIdentity(EJBComponentMetaData cmd, EJBRequestData request, SecurityCookieImpl preInvokeData) {
          Principal callerPrincipal = getCallerPrincipal(cmd, request, preInvokeData);
          if (callerPrincipal != null) {
              return new WSIdentity(callerPrincipal.getName());
          }
          return null;
      }
docs: {@inheritDoc}