public static function resolveClass( $resource, $id = null )
    {
        $class = 'IXF\\' . $resource;
        if( class_exists($class) )
            return new $class( $id );

        return new IXF\ApiResource( $id );
    }