code: public void loadFile(File file, String resourcePath) throws IOException {
  	loadFile(ResourceUtil.toResource(file), resourcePath);
      }
docs: create xml file from a resource definition
  
  @param file
  @param resourcePath
  @throws IOException