in src/main/java/org/apache/sling/feature/launcher/impl/launchers/FrameworkLauncher.java [151:159]
private void setOptionalBiConsumer(final Object restart, final String name, final BiConsumer consumer) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
try {
final Method setMethod = restart.getClass().getMethod(name, BiConsumer.class);
setMethod.setAccessible(true);
setMethod.invoke(restart, consumer);
} catch ( final NoSuchMethodException nsme) {
// ignore
}
}