title: Not able to retrieve attributes from the userIdentity object in worklight client
body: <p>Iam using worklight 6.0 and I have custom securityTest for the adapter.</p>
  
  <pre><code>In the loginModule, im adding few custom attributes for the userIdentity
  
  public UserIdentity createIdentity(String loginModule) {
          HashMap&lt;String, Object&gt; customAttributes = new HashMap&lt;String, Object&gt;();
          customAttributes.put("AuthenticationDate", new Date());
          customAttributes.put("userIdentity", USERIDENTITY);     
          UserIdentity identity = new UserIdentity("CustomAuthenticatorRealm", USERNAME, null, null, customAttributes, PASSWORD);
          return identity;
      }
  In the client side,
  
  var attrs = WL.Client.getUserInfo("CustomAuthenticatorRealm", "attributes");
  
  Sometimes Iam getting the attributes and sometimes as null.
  
  Please help me on this.
  </code></pre>