private static void populate(ModelNode source, ModelNode target) throws OperationFailedException {
    // AS7-3488 make default-cache non required attrinbute
    // target.get(ModelKeys.DEFAULT_CACHE).set(source.get(ModelKeys.DEFAULT_CACHE));

    CacheContainerResourceDefinition.DEFAULT_CACHE.validateAndSet(source, target);
    // TODO: need to handle list types
    if (source.hasDefined(ModelKeys.ALIASES)) {
      target.get(ModelKeys.ALIASES).set(source.get(ModelKeys.ALIASES));
    }
    CacheContainerResourceDefinition.JNDI_NAME.validateAndSet(source, target);
    CacheContainerResourceDefinition.START.validateAndSet(source, target);
    CacheContainerResourceDefinition.LISTENER_EXECUTOR.validateAndSet(source, target);
    CacheContainerResourceDefinition.EVICTION_EXECUTOR.validateAndSet(source, target);
    CacheContainerResourceDefinition.REPLICATION_QUEUE_EXECUTOR.validateAndSet(source, target);
    CacheContainerResourceDefinition.MODULE.validateAndSet(source, target);
    CacheContainerResourceDefinition.STATISTICS_ENABLED.validateAndSet(source, target);
  }