@Override
public NginxHandler newInstance(String name, String code) {
try {
NginxJavaRingHandler ringHandler;
if (name != null) {
ringHandler = (NginxJavaRingHandler) groovyLoader.loadClass(name).newInstance();
}else {
Method m = groovyLoader.getClass().getMethod("parseClass", String.class);
ringHandler = (NginxJavaRingHandler) ((Class)m.invoke(groovyLoader, code)).newInstance();