Ok,
but it is more like class types factory, Account Store could be a Group or Directory class.
This is concept I wanted to discuss with you,
depending on data that will be passed to AccountStoreClassFactory
it will create an instance of Group or Directory
in finall solution it will look so:

``` javascript
function AccountStoreClassFactory(data, dataStore){
var class = null;
if (!data || !data.href){
     class =  InstanceResource;
   }
 
   if (/v1\/groups/.test(data.href)){
     class =   require('./Group');
   }
 
   if (/v1\/directories/.test(data.href)){
     class =   require('./Directory');
   }
   
  if (!class){
     throw new Error('Unknown resource type of Account Store in Account Store Mapping, href:' + data.href);
  }
  
  require('./ResourceFactory').instantiate(class, data.null, dataStore);
 }
```