class VufsServiceImpl implements IVufsService {

    @Override
    public boolean addMetafileAsChildToParent(Metafile childMetafile,
            String parentMetafileUuid) {
        boolean isAdded = false;
        //add Metafile to set of metafile in Metatable.
        if (currentMetatable.addMetafile(childMetafile)) {
            for (Metafile metafile : currentMetatable.getMetafileSet()) {
                //parent metafile exist and its a directory.
                if (metafile.getFileUuid().equalsIgnoreCase(parentMetafileUuid)) {
                    isAdded = metafile.addChildFileUUid(childMetafile.getFileUuid());
                }
            }
        }
        if (isAdded) {
            childMetafile.setParentFileUuid(parentMetafileUuid);
            return true;
        }
        return false;
    }

    @Autowired public  VufsServiceImpl(IProfile profile,
            MetatableTransformer metatableTransformer,
            IMetatableService persistingService);

}