code: private ItemData getItemData(final String identifier, final boolean doInitACL) throws RepositoryException
     {
        if (cache.isEnabled())
        {
           // 1. Try from cache
           ItemData data = getCachedCleanItemData(identifier);
  
           // 2 Try from container
           if (data == null)
           {
              final DataRequest request = new DataRequest(identifier);
  
              try
              {
                 request.start();
                 // Try first to get the value from the cache since a
                 // request could have been launched just before
                 data = getCachedCleanItemData(identifier);
                 if (data == null)
                 {
                    data = executeAction(new PrivilegedExceptionAction<ItemData>()
                    {
                       public ItemData run() throws RepositoryException
                       {
                          return getPersistedItemData(identifier);
                       }
                    });
                 }
              }
              finally
              {
                 request.done();
              }
           }
  
           if (data instanceof NullItemData)
           {
              return null;
           }
  
           if (data != null && !data.isNode())
           {
              fixPropertyValues((PropertyData)data);
           }
  
           return data;
        }
        else
        {
           return executeAction(new PrivilegedExceptionAction<ItemData>()
           {
              public ItemData run() throws RepositoryException
              {
                 ItemData item = CacheableWorkspaceDataManager.super.getItemData(identifier);
                 if (item != null && item.isNode() && doInitACL)
                 {
                    return initACL(null, (NodeData)item);
                 }
                 else
                 {
                    return item;
                 }
              }
           });
        }
     }
docs: Do the same thing as getItemData(identifier), but ACL initialization can be specified.
  If doInitACL is true (default value for getItemData(identifier)) ACL will be initialized.
  
  @param identifier
  @param doInitACL
  @return
  @throws RepositoryException