code: private boolean isEntity(Object o){
          Class<? extends Object> varClass = o.getClass();
          return managedClasses.contains( varClass.getCanonicalName() );
      }
docs: Changed implementation, using EntityManager Metamodel in spite of Reflection.
  @param o
  @return