private File getChildFile(File resource, IEntity child) {
   String contextAbsolutePath = resource.getAbsolutePath();
   String name = ArtifactsUtils.getName(child);
   File member = new File(contextAbsolutePath + File.separator + name);
   // ensure artifact type
   if (member.exists()
       && Matcher.match(ArtifactsEntityDescriptorEnum.FileArtifact, child) != member.isFile())
     member = null;
   return member;
 }
 public void delete(File resource) {
   ArtifactsUtils.deleteTree(resource);
 }