code: @SuppressWarnings({ "rawtypes" })
      @Override
      public void setMetaData(IMetaData meta) throws IOException {
          log.info("setMetaData: {}", meta);
          if (metaService == null) {
              metaService = new MetaService(file);
          }
          //if the file is not checked the write may produce an NPE
          if (metaService.getFile() == null) {
              metaService.setFile(file);
          }
          metaService.write(meta);
          metaData = meta;
      }
docs: {@inheritDoc}