configuration.setScopeContainer(container);
configuration.addServiceInterface(clazz);
configuration.setInstanceFactory(new PojoObjectFactory(clazz.getConstructor()));
Method[] methods = clazz.getMethods();
for (Method method : methods) {
Init init;
if ((init = method.getAnnotation(Init.class)) != null) {
configuration.setInitLevel(init.eager() ? 50 : 0);
configuration.setInitInvoker(new MethodEventInvoker<Object>(method));
} else if (method.getAnnotation(Destroy.class) != null) {
configuration.setDestroyInvoker(new MethodEventInvoker<Object>(method));
}