private void initialize(Class<OpsType> opsType,Interface instance) throws InstantiationException, IllegalAccessException {
  mOpsInstance=opsType.newInstance();
  mRetainedFragmentManager.put(opsType.getSimpleName(),mOpsInstance);
  mOpsInstance.onConfiguration(instance,true);
}

private void initialize ( Class < OpsType > opsType , Interface instance ) throws InstantiationException , IllegalAccessException { mOpsInstance = opsType . newInstance ( ) ; mRetainedFragmentManager . put ( opsType . getSimpleName ( ) , mOpsInstance ) ; mOpsInstance . onConfiguration ( instance , true ) ; }
initialize the genericactivity fields .
