public void registerClass(ClassEntity entity) {
        synchronized (classMap) {
            if (classMap.containsKey(entity.getLowerName()))
                exception("Class '%s' already registered", entity.getName());

            classMap.put(entity.getLowerName(), entity);
            entity.initEnvironment(this);
        }
    }
Remove all method which does not destruct

@throws Throwable
jphp-runtime/src/php/runtime/env/Environment.java