public static Object callMethod(Object obj, Collection.Key methodName, Object[] args, Object defaultValue) {
	if (obj == null) {
	    return defaultValue;
	}
	// checkAccesibility(obj,methodName);

	MethodInstance mi = getMethodInstanceEL(obj, obj.getClass(), methodName, args);
	if (mi == null) return defaultValue;
	try {
	    return mi.invoke(obj);
	}
	catch (Throwable t) {
	    ExceptionUtil.rethrowIfNecessary(t);
	    return defaultValue;
	}
    }
public static Object callMethod ( Object obj , Collection . Key methodName , Object [ ] args , Object defaultValue ) { if ( obj == null ) { return defaultValue ; } MethodInstance mi = getMethodInstanceEL ( obj , obj . getClass ( ) , methodName , args ) ; if ( mi == null ) return defaultValue ; try { return mi . invoke ( obj ) ; } catch ( Throwable t ) { ExceptionUtil . rethrowIfNecessary ( t ) ; return defaultValue ; } }
/*
private static void checkAccesibilityx(Object obj, Key methodName) {
if(methodName.equals(SET_ACCESSIBLE) && obj instanceof Member) { if(true) return; Member
member=(Member) obj; Class<?> cls = member.getDeclaringClass();
if(cls.getPackage().getName().startsWith("lucee.")) { throw new PageRuntimeException(new
SecurityException("Changing the accesibility of an object's members in the Lucee.* package is not allowed"
)); } } }