class ConfigurationStore implements IvoryService {

    public boolean remove(EntityType type, String name) throws IvoryException {
        Map<String, Entity> entityMap = dictionary.get(type);
        if (entityMap.containsKey(name)) {
            try {
                archive(type, name);
                onRemove(entityMap.remove(name));
            } catch (IOException e) {
                throw new StoreAccessException(e);
            }
            AUDIT.info(type + " " + name + " is removed from config store");
            return true;
        }
        return false;
    }

    @SuppressWarnings("unchecked") private  ConfigurationStore();

}