public static function resourceId($parameters, $UINTEGER = true)
    {
        //Work with arrays
        if (is_object($parameters)) {
            $parameters = (array)$parameters;
        }

        //Check if is set AND validate
        if (isset($parameters['resource_id'])
            && preg_match(Validate::REGEXP_RESOURCE_ID, $parameters['resource_id']) !== false
        ) {
            if ($UINTEGER) {
                return UnsignedIntegerValidator::parseStatic($parameters['resource_id']);
            }
            return $parameters['resource_id'];
        }

        if (isset($parameters['id'])
            && preg_match(Validate::REGEXP_RESOURCE_ID, $parameters['id']) !== false
        ) {
            if ($UINTEGER) {
                return UnsignedIntegerValidator::parseStatic($parameters['id']);
            }
            return $parameters['id'];
        }
        return false;
    }