if ( findProperty(properties, "behavioursClass")){
return (Behaviours) newInstance(loadClass(getProperty(properties, "behavioursClass"), behavioursClassLoader));
} else if ( findProperty(properties, "behaviourClass")){
return new BehavioursAdapter(loadClass(getProperty(properties, "behaviourClass"), behavioursClassLoader));
}
throw new JBehaveFrameworkError("Could not load behaviours from properties "+properties);
}