if (unknown != null && unknown instanceof Object[]) { Object[] array = (Object[]) unknown; if (array.length > 0) { returnValue = array[0];
if (unknown != null && unknown.getClass().isArray()) { if (Array.getLength(unknown) > 0) { returnValue = Array.get(unknown, 0);
    protected Object getSingleOverrideValue() throws StripesJspException {        Object unknown = getOverrideValueOrValues();        Object returnValue = null;        if (unknown != null && unknown instanceof Object[]) {            Object[] array = (Object[]) unknown;            if (array.length > 0) {                returnValue = array[0];            }        }        else if (unknown != null && unknown instanceof Collection) {            Collection collection = (Collection) unknown;            if (collection.size() > 0) {                returnValue = collection.iterator().next();            }        }        else {            returnValue = unknown;        }        return returnValue;    }