public <T extends IObject> T newObject(Environment env, TraceInfo trace, boolean doConstruct, boolean checks, Memory... args)
            throws Throwable {

        if (checks) {
            checkCanInstance(env, trace);
        }

        IObject object;
        try {
            if (nativeConstructor == null) {
                env.error(trace, ErrorType.E_CORE_ERROR, Messages.ERR_CANNOT_FIND_JAVA_CONSTRUCTOR, getName());
            }

            object = (IObject) nativeConstructor.newInstance(env, this);
        } catch (InvocationTargetException e) {
            env.__throwException(e);
            return null;
        }

        /*ArrayMemory props = object.getProperties();

        for (PropertyEntity property : getProperties()) {
            if (id == property.clazz.getId() && property.getGetter() == null) {
                //value.isImmutable();
                props.putAsKeyString(
                        property.getSpecificName(),
                        property.getDefaultValue(env).fast_toImmutable()
                );
            }
        }

        ClassEntity tmp = parent;
        while (tmp != null) {
            long otherId = tmp.getId();
            for (PropertyEntity property : tmp.getProperties()) {
                if (property.getClazz().getId() == otherId && property.getGetter() == null) {
                    if (property.modifier != Modifier.PROTECTED || props.getByScalar(property.getName()) == null)
                        props.getByScalarOrCreate(
                                property.getSpecificName(),
                                property.getDefaultValue(env).fast_toImmutable()
                        );
                }
            }
            tmp = tmp.parent;
        }*/

        if (doConstruct && methodConstruct != null) {
            ObjectInvokeHelper.invokeMethod(object, methodConstruct, env, trace, args, true);
        }

        return (T) object;
    }
return empty list if success else list with not valid implemented methods in class

@param _interface
@return
jphp-runtime/src/php/runtime/reflection/ClassEntity.java