public class FeatureManagerObjectFactory implements ObjectFactory {
@Override
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
TogglzConfig config = getConfiguration(obj);
if (config == null) {
throw new IllegalArgumentException("Unable to find TogglzConfig implementation..");
}