in src/main/java/org/apache/sling/junit/rules/TeleporterRule.java [118:142]
protected void customize() {
// As with the client-side rule implementation, instantiate our Customizer
// dynamically to avoid requiring its class on the server side.
if (!isServerSide()) {
if ((clientSetupOptions != null) && !clientSetupOptions.isEmpty()) {
String customizerClassName = clientSetupOptions;
String customizerOptions = "";
final int firstColon = clientSetupOptions.indexOf(":");
if (firstColon > 0) {
customizerClassName = clientSetupOptions.substring(0, firstColon);
customizerOptions = clientSetupOptions.substring(firstColon + 1);
}
// If a short name is used, transform it using our pattern.
// Simplifies referring to these customizers in test code,
// without having to make the customizer classes accessible to this bundle
if (!customizerClassName.contains(".")) {
customizerClassName = CUSTOMIZER_PATTERN.replace("<NAME>", customizerClassName);
}
createInstance(Customizer.class, customizerClassName).customize(this, customizerOptions);
} else {
// use default customizer which is based on system properties
createInstance(Customizer.class, DEFAULT_CUSTOMIZER_CLASS).customize(this, null);
}
}
}