public boolean handle()

in src/main/java/org/apache/sling/installer/factory/model/impl/RepoinitExtensionHandler.java [37:50]


    public boolean handle(ExtensionHandlerContext context, Extension extension, Feature feature) throws Exception {
        if (!extension.getName().equals(Extension.EXTENSION_NAME_REPOINIT) ||
                extension.getType() != ExtensionType.TEXT) {
            return false;
        }

        final String configPid = REPOINIT_FACTORY_PID.concat(feature.getId().toMvnName().replace('-', '_'));
        final Dictionary<String, Object> props = new Hashtable<>();
        props.put("scripts", extension.getText());
        props.put(Constants.SERVICE_RANKING, 200);

        context.addConfiguration(null, configPid, props);
        return true;
    }