public function createInstance($className, $args = null)
    {
        $reflectionClass = new ReflectionClass($className);
        $args = func_get_args();
        array_shift($args);

        return $reflectionClass->newInstanceArgs($args);
    }