public static Map < String , byte [ ] > storeInstanceResources ( File applicationFilesDirectory , Instance instance ) throws IOException { // Recipes Map < String , byte [ ] > result = new HashMap <> ( ) ; File instanceResourcesDirectory = findInstanceResourcesDirectory ( applicationFilesDirectory , instance ) ; if ( instanceResourcesDirectory . exists ( ) && instanceResourcesDirectory . isDirectory ( ) ) result . putAll ( Utils . storeDirectoryResourcesAsBytes ( instanceResourcesDirectory ) ) ; // Probe files result . putAll ( storeInstanceProbeResources ( applicationFilesDirectory , instance ) ) ; return result ; }
Stores the instance resources into a map .