code: Resource[] updatePlugin(InputStream is, String realpath, boolean closeStream) throws PageException, IOException, SAXException {
  	List<Resource> filesDeployed = new ArrayList<Resource>();
  	deployFilesFromStream(config, config.getPluginDirectory(), is, realpath, closeStream, filesDeployed);
  	return filesDeployed.toArray(new Resource[filesDeployed.size()]);
      }
docs: /*
  static Resource[] updatePlugin(ConfigImpl config,InputStream is,String realpath, boolean
  closeStream) throws PageException, IOException, SAXException { ConfigWebAdmin admin = new
  ConfigWebAdmin(config, null); List<Resource> filesDeployed=new ArrayList<Resource>();
  admin.deployFilesFromStream(config,config.getPluginDirectory(), is, realpath, closeStream,
  filesDeployed); return filesDeployed.toArray(new Resource[filesDeployed.size()]); }