final cucumber.runtime.arquillian.api.Glues additionalGlues = clazz.getAnnotation(cucumber.runtime.arquillian.api.Glues.class);
if (additionalGlues != null) {
Collections.addAll(glues, additionalGlues.value());
}
final CucumberOptions cucumberOptions = clazz.getAnnotation(CucumberOptions.class);
if (cucumberOptions != null) {
final String[] cucumberGlues = cucumberOptions.glue();
if (cucumberGlues.length > 0) {
final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
final JavaBackend javaBackend = new JavaBackend(new MultiLoader(classLoader));
final ScanGlue glue = new ScanGlue();
javaBackend.loadGlue(glue, asList(cucumberGlues));