in src/main/java/org/apache/sling/installer/provider/installhook/OsgiInstallerHook.java [413:422]
InstallableResource convert(final Node node, final String path, PackageProperties packageProperties)
throws IOException, RepositoryException {
LOG.trace("Converting {} at path {}", node, path);
final String digest = String.valueOf(node.getProperty(JCR_CONTENT_LAST_MODIFIED).getDate().getTimeInMillis());
final InputStream is = node.getProperty(JCR_CONTENT_DATA).getBinary().getStream();
final Dictionary<String, Object> dict = new Hashtable<String, Object>();
dict.put(InstallableResource.INSTALLATION_HINT, node.getParent().getName());
int priority = getNumericPackageProperty(packageProperties, PACKAGE_PROPERTY_INSTALL_PRIORITY, DEFAULT_PRIORITY_INSTALL_HOOK);
return new InstallableResource(path, is, dict, digest, null, priority);
}