static void createFileFromResource(String resource,Resource file) throws IOException {
  createFileFromResource(resource,file,null);
}

static void createFileFromResource ( String resource , Resource file ) throws IOException { createFileFromResource ( resource , file , null ) ; }
creates a file and his content froma a resurce
